修复管理后台es分词报错问题
parent
9979b6fd67
commit
e80316d43d
|
@ -408,22 +408,22 @@ export const getProgress = () => {
|
||||||
|
|
||||||
// 分页查询自定义分词
|
// 分页查询自定义分词
|
||||||
export const getCustomWordsPage = (params) => {
|
export const getCustomWordsPage = (params) => {
|
||||||
return getRequest(`/manager/custom-words`, params);
|
return getRequest(`/custom-words/page`, params);
|
||||||
};
|
};
|
||||||
|
|
||||||
// 添加自定义分词
|
// 添加自定义分词
|
||||||
export const insertCustomWords = (params) => {
|
export const insertCustomWords = (params) => {
|
||||||
return postRequest(`/manager/custom-words`, params);
|
return postRequest(`/custom-words`, params);
|
||||||
};
|
};
|
||||||
|
|
||||||
// 修改自定义分词
|
// 修改自定义分词
|
||||||
export const updateCustomWords = (params) => {
|
export const updateCustomWords = (params) => {
|
||||||
return putRequest(`/manager/custom-words`, params);
|
return putRequest(`/custom-words`, params);
|
||||||
};
|
};
|
||||||
|
|
||||||
// 删除自定义分词
|
// 删除自定义分词
|
||||||
export const delCustom = (id) => {
|
export const delCustom = (id) => {
|
||||||
return deleteRequest(`/manager/custom-words/${id}`);
|
return deleteRequest(`/custom-words/${id}`);
|
||||||
};
|
};
|
||||||
|
|
||||||
// 设置热搜词
|
// 设置热搜词
|
||||||
|
|
|
@ -413,6 +413,7 @@ export default {
|
||||||
},
|
},
|
||||||
// 重置密码
|
// 重置密码
|
||||||
resetPass() {
|
resetPass() {
|
||||||
|
if(this.selectCount==0) {this.$Message.warning('请选中数据后重试!'); return}
|
||||||
this.$Modal.confirm({
|
this.$Modal.confirm({
|
||||||
title: "确认重置",
|
title: "确认重置",
|
||||||
content:
|
content:
|
||||||
|
|
Loading…
Reference in New Issue