diff --git a/src/api/markdown-api.js b/src/api/markdown-api.js index 1368153..5b09527 100644 --- a/src/api/markdown-api.js +++ b/src/api/markdown-api.js @@ -18,6 +18,14 @@ export default { data }) }, + // 修改文档排序 /markdown/sort + sortMarkdown: function(data) { + return request({ + url: '/markdown/sort', + method: 'post', + data + }) + }, // 删除草稿 /markdown/deleteDraft deleteDraft: function(params) { return request({ diff --git a/src/styles/setting.scss b/src/styles/setting.scss index 7822023..459628c 100644 --- a/src/styles/setting.scss +++ b/src/styles/setting.scss @@ -16,7 +16,7 @@ a:hover { } /deep/.box-card { margin: 0 auto; - max-width: 1080px; + max-width: 1140px; min-width: 640px; .clearfix { font-size: 16px; diff --git a/src/views/markdown/EditElement.vue b/src/views/markdown/EditElement.vue index 59c4770..6447c97 100644 --- a/src/views/markdown/EditElement.vue +++ b/src/views/markdown/EditElement.vue @@ -29,7 +29,6 @@ export default{ watch: { value(value){ if (!this.isLocked || !this.innerText) { - console.log('value', value) this.innerText = value document.getElementById('edit-div').innerHTML = value } diff --git a/src/views/markdown/index.vue b/src/views/markdown/index.vue index 02806bd..02abe4a 100644 --- a/src/views/markdown/index.vue +++ b/src/views/markdown/index.vue @@ -274,7 +274,7 @@ this.filename = this.file.name.split('.md')[0] this.storageLocation = this.file.path // 加载标签 - if(this.tags && this.tags.length > 0) { + if(this.file.tagIds && this.file.tagIds.length > 0 && this.tags && this.tags.length > 0) { this.loadDynamicTags() } }).then(() => { diff --git a/src/views/setting/articles/alonePageManager.vue b/src/views/setting/articles/alonePageManager.vue index 6f18e60..3eee284 100644 --- a/src/views/setting/articles/alonePageManager.vue +++ b/src/views/setting/articles/alonePageManager.vue @@ -28,4 +28,5 @@ export default { } diff --git a/src/views/setting/articles/articleManager.vue b/src/views/setting/articles/articleManager.vue index 4814a37..5cdf26a 100644 --- a/src/views/setting/articles/articleManager.vue +++ b/src/views/setting/articles/articleManager.vue @@ -71,15 +71,16 @@