增加商品索引初始化功能

This commit is contained in:
Chopper
2021-05-18 14:18:08 +08:00
parent c457f6abc9
commit d32ea4f1ce
2 changed files with 18 additions and 3 deletions

View File

@@ -411,3 +411,8 @@ export const getChildRegion = (id) => {
export const resetPassword = (params) => {
return postRequest(`/user/resetPassword/${params}"`);
};
// 初始化商品索引
export const createIndex = () => {
return getRequest(`/elasticsearch`);
};