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">