Browse Source

fix:verifyUnique method from delete to get

dev
powersir 1 year ago
parent
commit
ab921e5cbe
3 changed files with 5 additions and 5 deletions
  1. +2
    -2
      src/request/service/category.ts
  2. +1
    -1
      src/request/service/goods-classify.ts
  3. +2
    -2
      src/request/service/material-classify.ts

+ 2
- 2
src/request/service/category.ts View File

@@ -38,11 +38,11 @@ export default {


// 类目名称唯一校验 // 类目名称唯一校验
categoryNameVerifyUnique: (categoryName: string) => { categoryNameVerifyUnique: (categoryName: string) => {
return request.delete(`${BASE_URL}/categoryNameVerifyUnique?categoryName=${categoryName}`);
return request.get(`${BASE_URL}/categoryNameVerifyUnique?categoryName=${categoryName}`);
}, },


// 类目英文名称唯一校验 // 类目英文名称唯一校验
categoryNameEnVerifyUnique: (categoryNameEn: string) => { categoryNameEnVerifyUnique: (categoryNameEn: string) => {
return request.delete(`${BASE_URL}/categoryNameEnVerifyUnique?categoryNameEn=${categoryNameEn}`);
return request.get(`${BASE_URL}/categoryNameEnVerifyUnique?categoryNameEn=${categoryNameEn}`);
}, },
}; };

+ 1
- 1
src/request/service/goods-classify.ts View File

@@ -32,6 +32,6 @@ export default {


// 商品分类名称唯一校验 // 商品分类名称唯一校验
classifyNameVerifyUnique: (classifyName: string) => { classifyNameVerifyUnique: (classifyName: string) => {
return request.delete(`${BASE_URL}/classifyNameVerifyUnique?classifyName=${classifyName}`);
return request.get(`${BASE_URL}/classifyNameVerifyUnique?classifyName=${classifyName}`);
}, },
}; };

+ 2
- 2
src/request/service/material-classify.ts View File

@@ -33,11 +33,11 @@ export default {


// 删除素材分类 // 删除素材分类
deleteMaterialClassifyApi: (id: number) => { deleteMaterialClassifyApi: (id: number) => {
return request.delete(`${BASE_URL}/delete?id=${id}`);
return request.get(`${BASE_URL}/delete?id=${id}`);
}, },


// 素材分类名称唯一校验 // 素材分类名称唯一校验
MaterialClassifyNameVerifyUnique: (materialClassifyName: string) => { MaterialClassifyNameVerifyUnique: (materialClassifyName: string) => {
return request.delete(`${BASE_URL}/materialClassifyNameVerifyUnique?materialClassifyName=${materialClassifyName}`);
return request.get(`${BASE_URL}/materialClassifyNameVerifyUnique?materialClassifyName=${materialClassifyName}`);
}, },
}; };

Loading…
Cancel
Save