diff --git a/manager/src/api/index.js b/manager/src/api/index.js index 658ad6cd..30be8a95 100644 --- a/manager/src/api/index.js +++ b/manager/src/api/index.js @@ -411,3 +411,8 @@ export const getChildRegion = (id) => { export const resetPassword = (params) => { return postRequest(`/user/resetPassword/${params}"`); }; + +// 初始化商品索引 +export const createIndex = () => { + return getRequest(`/elasticsearch`); +}; diff --git a/manager/src/views/sys/setting-manage/setting/GOODS_SETTING.vue b/manager/src/views/sys/setting-manage/setting/GOODS_SETTING.vue index 42359af9..88d59d2c 100644 --- a/manager/src/views/sys/setting-manage/setting/GOODS_SETTING.vue +++ b/manager/src/views/sys/setting-manage/setting/GOODS_SETTING.vue @@ -55,14 +55,14 @@