From 884964eadfd922548e6bccf8ceb894b119a2f85b Mon Sep 17 00:00:00 2001 From: ruibaby Date: Sun, 1 Sep 2019 21:35:54 +0800 Subject: [PATCH] release 1.1.0-beta.2 --- src/api/theme.js | 6 ++--- src/components/global.less | 7 ++++-- src/views/dashboard/Dashboard.vue | 6 ++--- .../interface/components/ThemeSetting.vue | 25 +++++++++++-------- src/views/post/components/CategoryTree.vue | 4 --- 5 files changed, 25 insertions(+), 23 deletions(-) diff --git a/src/api/theme.js b/src/api/theme.js index 8bfc703af..3b3eeb1c0 100644 --- a/src/api/theme.js +++ b/src/api/theme.js @@ -136,10 +136,10 @@ themeApi.getContent = path => { themeApi.saveContent = (path, content) => { return service({ url: `${baseUrl}/files/content`, - params: { - path: path + data: { + path: path, + content: content }, - data: content, method: 'put' }) } diff --git a/src/components/global.less b/src/components/global.less index b58e56f21..864bc3cdd 100644 --- a/src/components/global.less +++ b/src/components/global.less @@ -689,7 +689,8 @@ body { } } -.post-thumb,.sheet-thumb { +.post-thumb, +.sheet-thumb { .img { width: 100%; cursor: pointer; @@ -697,7 +698,8 @@ body { } } -.post-thumb-remove,.sheet-thumb-remove { +.post-thumb-remove, +.sheet-thumb-remove { margin-top: 16px; } @@ -719,6 +721,7 @@ body { overflow: hidden; float: left; cursor: pointer; + img { width: 100%; height: 100%; diff --git a/src/views/dashboard/Dashboard.vue b/src/views/dashboard/Dashboard.vue index 43ab4c320..08c070271 100644 --- a/src/views/dashboard/Dashboard.vue +++ b/src/views/dashboard/Dashboard.vue @@ -520,12 +520,12 @@ export default { } - diff --git a/src/views/interface/components/ThemeSetting.vue b/src/views/interface/components/ThemeSetting.vue index aaede9a87..e692425d7 100644 --- a/src/views/interface/components/ThemeSetting.vue +++ b/src/views/interface/components/ThemeSetting.vue @@ -167,6 +167,7 @@ :sm="24" :xs="24" v-if="viewMode" + style="padding-bottom: 50px;" > @@ -196,14 +198,14 @@ :style="{ width : '100%'}" > 普通模式 { + this.options = response.data.data + }) + }, initData() { this.settingLoading = true @@ -318,7 +326,8 @@ export default { this.attachmentDrawerVisible = false }, toggleViewMode() { - if (!this.viewMode) { + this.viewMode = !this.viewMode + if (this.viewMode) { this.formColValue = 4 this.wrapperCol = { xl: { span: 24 }, @@ -335,12 +344,6 @@ export default { xs: { span: 24 } } } - this.viewMode = !this.viewMode - }, - loadOptions() { - optionApi.listAll(this.keys).then(response => { - this.options = response.data.data - }) } } } diff --git a/src/views/post/components/CategoryTree.vue b/src/views/post/components/CategoryTree.vue index 369436c6a..b2a6b1070 100644 --- a/src/views/post/components/CategoryTree.vue +++ b/src/views/post/components/CategoryTree.vue @@ -6,10 +6,6 @@ :checkedKeys="categoryIds" @check="onCheck" > - sss