diff --git a/src/pages/article/add/index.vue b/src/pages/article/add/index.vue index 877f4c3..c928a68 100644 --- a/src/pages/article/add/index.vue +++ b/src/pages/article/add/index.vue @@ -1366,11 +1366,11 @@ export default { // 文章名称判重 nameChange () { - const { title, level, id } = this.form + const { title, id } = this.form if (title && title !== this.originalName) { - this.$post(this.api.checkIfTheTitleIsRepeat, Util.rsa({ + this.$post(this.api.checkIfTheTitleIsRepeat, { siteId: this.site.id, - title: encodeURI(title), + title, id: id || '' })).then(res => { this.repeatMsg = '' @@ -1576,7 +1576,7 @@ export default { if (this.submiting) return false const form = JSON.parse(JSON.stringify(this.form)) if (!form.title) return Util.errorMsg('请填写标题') - if (this.nameRepeat) return Util.errorMsg(this.repeatMsg) + if (this.nameRepeat) return Util.errorMsg('该标题已重复!') if (typeof form.fatherId === 'object') form.fatherId = form.fatherId[form.fatherId.length - 1] const tId = form.articleTemplate // 如果是发布 diff --git a/src/pages/column/page/overview.vue b/src/pages/column/page/overview.vue index 25acc6a..dd4c0e4 100644 --- a/src/pages/column/page/overview.vue +++ b/src/pages/column/page/overview.vue @@ -54,7 +54,8 @@ alt="" class="pic">
-
{{ modules[2].form.title }}
+
@@ -67,7 +68,8 @@ alt="" class="pic">
-
{{ modules[3].form.title }}
+
@@ -293,7 +295,7 @@ export default { width: 500px; color: #fff; } - h6 { + .core-title { font-size: 1.4rem; font-family: PingFangSC-Medium, PingFang SC; } diff --git a/src/plugins/requests/index.js b/src/plugins/requests/index.js index b995b8f..cd002ef 100644 --- a/src/plugins/requests/index.js +++ b/src/plugins/requests/index.js @@ -41,7 +41,7 @@ service.interceptors.response.use( }, 1000) return Promise.reject(res) } else { - Util.errorMsg(res.msg); + res.msg && Util.errorMsg(res.msg); return Promise.reject(res) } },