From 06290c8e02438dd38f60b663a8f4e42304df8ac2 Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Fri, 29 Mar 2024 14:28:09 +0800 Subject: [PATCH] fix --- src/pages/article/add/index.vue | 8 ++++---- src/pages/column/page/overview.vue | 8 +++++--- src/plugins/requests/index.js | 2 +- 3 files changed, 10 insertions(+), 8 deletions(-) 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">