Procházet zdrojové kódy

fix:verifyUnique method from delete to get

dev
powersir před 1 rokem
rodič
revize
ab921e5cbe
3 změnil soubory, kde provedl 5 přidání a 5 odebrání
  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 Zobrazit soubor

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

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

// 类目英文名称唯一校验
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 Zobrazit soubor

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

// 商品分类名称唯一校验
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 Zobrazit soubor

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

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

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

Načítá se…
Zrušit
Uložit