|
|
@@ -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}`); |
|
|
|
}, |
|
|
|
}; |