From e80316d43d8d7e934db9907a44ab2cb20f9ea5d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?lemon=E6=A9=AA?= <17633066053@163.com> Date: Sat, 9 Oct 2021 09:29:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=AE=A1=E7=90=86=E5=90=8E?= =?UTF-8?q?=E5=8F=B0es=E5=88=86=E8=AF=8D=E6=8A=A5=E9=94=99=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manager/src/api/index.js | 8 ++++---- manager/src/views/sys/user-manage/userManage.vue | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/manager/src/api/index.js b/manager/src/api/index.js index 91b0f394..b4cc38b1 100644 --- a/manager/src/api/index.js +++ b/manager/src/api/index.js @@ -408,22 +408,22 @@ export const getProgress = () => { // 分页查询自定义分词 export const getCustomWordsPage = (params) => { - return getRequest(`/manager/custom-words`, params); + return getRequest(`/custom-words/page`, params); }; // 添加自定义分词 export const insertCustomWords = (params) => { - return postRequest(`/manager/custom-words`, params); + return postRequest(`/custom-words`, params); }; // 修改自定义分词 export const updateCustomWords = (params) => { - return putRequest(`/manager/custom-words`, params); + return putRequest(`/custom-words`, params); }; // 删除自定义分词 export const delCustom = (id) => { - return deleteRequest(`/manager/custom-words/${id}`); + return deleteRequest(`/custom-words/${id}`); }; // 设置热搜词 diff --git a/manager/src/views/sys/user-manage/userManage.vue b/manager/src/views/sys/user-manage/userManage.vue index b6a0e4ce..e77498f3 100644 --- a/manager/src/views/sys/user-manage/userManage.vue +++ b/manager/src/views/sys/user-manage/userManage.vue @@ -413,6 +413,7 @@ export default { }, // 重置密码 resetPass() { + if(this.selectCount==0) {this.$Message.warning('请选中数据后重试!'); return} this.$Modal.confirm({ title: "确认重置", content: