修改分类管理接口地址和状态字段值类型,统一前后端数据格式

This commit is contained in:
WUSIJIAN
2025-12-12 17:54:30 +08:00
parent 709aa9423b
commit 7bdc961d4b
2 changed files with 3 additions and 3 deletions

View File

@@ -23,7 +23,7 @@ export function getCategory(id: string) {
// 新增分类
export function addCategory(data: object) {
return newService({
url: '/assets/category/addCategory',
url: '/assets/category/createCategory',
method: 'post',
data: data,
});

View File

@@ -27,8 +27,8 @@
<el-form-item label="状态">
<el-switch
v-model="ruleForm.status"
active-value="enabled"
inactive-value="disabled"
active-value="1"
inactive-value="0"
inline-prompt
active-text="显示"
inactive-text="隐藏"