diff --git a/src/api/article.js b/src/api/article.js index b137ee5d..6f541127 100644 --- a/src/api/article.js +++ b/src/api/article.js @@ -1,13 +1,13 @@ import fetch from 'utils/fetch' -export function getList () { +export function getList() { return fetch({ url: '/article/list', method: 'get' }) } -export function getArticle () { +export function getArticle() { return fetch({ url: '/article/detail', method: 'get' diff --git a/src/api/article_table.js b/src/api/article_table.js index 767608d6..f4ae1af4 100644 --- a/src/api/article_table.js +++ b/src/api/article_table.js @@ -1,6 +1,6 @@ import fetch from 'utils/fetch' -export function fetchList (query) { +export function fetchList(query) { return fetch({ url: '/article_table/list', method: 'get', @@ -8,7 +8,7 @@ export function fetchList (query) { }) } -export function fetchPv (pv) { +export function fetchPv(pv) { return fetch({ url: '/article_table/pv', method: 'get', diff --git a/src/api/login.js b/src/api/login.js index e811e06b..4674d1c8 100644 --- a/src/api/login.js +++ b/src/api/login.js @@ -1,6 +1,6 @@ import fetch from 'utils/fetch' -export function loginByUsername (username, password) { +export function loginByUsername(username, password) { const data = { username, password @@ -12,14 +12,14 @@ export function loginByUsername (username, password) { }) } -export function logout () { +export function logout() { return fetch({ url: '/login/logout', method: 'post' }) } -export function getInfo (token) { +export function getInfo(token) { return fetch({ url: '/user/info', method: 'get', diff --git a/src/api/qiniu.js b/src/api/qiniu.js index 3b54da6f..59e82a37 100644 --- a/src/api/qiniu.js +++ b/src/api/qiniu.js @@ -1,6 +1,6 @@ import fetch from 'utils/fetch' -export function getToken () { +export function getToken() { return fetch({ url: '/qiniu/upload/token', // 假地址 自行替换 method: 'get' diff --git a/src/api/remoteSearch.js b/src/api/remoteSearch.js index e2ddbafa..6ba64443 100644 --- a/src/api/remoteSearch.js +++ b/src/api/remoteSearch.js @@ -1,6 +1,6 @@ import fetch from 'utils/fetch' -export function userSearch (name) { +export function userSearch(name) { return fetch({ url: '/search/user', method: 'get', diff --git a/src/components/MdEditor/index.vue b/src/components/MarkdownEditor/index.vue similarity index 100% rename from src/components/MdEditor/index.vue rename to src/components/MarkdownEditor/index.vue diff --git a/src/components/Tinymce/index.vue b/src/components/Tinymce/index.vue index 50c8434d..8f9c8e51 100644 --- a/src/components/Tinymce/index.vue +++ b/src/components/Tinymce/index.vue @@ -52,11 +52,9 @@ export default { height: this.height, body_class: 'panel-body ', object_resizing: false, - // language: 'zh_CN', - // language_url: '/static/tinymce/langs/zh_CN.js', toolbar: this.toolbar, menubar: this.menubar, - plugins: 'advlist,autolink,code,paste,textcolor, colorpicker,fullscreen,link,lists,media,wordcount, imagetools,watermark', + plugins: 'advlist,autolink,code,paste,textcolor, colorpicker,fullscreen,link,lists,media,wordcount, imagetools', end_container_on_empty_block: true, powerpaste_word_import: 'clean', code_dialog_height: 450, @@ -160,14 +158,4 @@ export default { visibility: hidden; z-index: -1; } - -.editor-custom-btn-container { - position: absolute; - right: 15px; - top: 18px; -} - -.editor-upload-btn { - display: inline-block; -} diff --git a/src/components/twoDndList/index.vue b/src/components/twoDndList/index.vue index 3f9cbba2..09e1fe0d 100644 --- a/src/components/twoDndList/index.vue +++ b/src/components/twoDndList/index.vue @@ -3,21 +3,20 @@