修改分类管理接口地址和状态字段值类型,统一前后端数据格式
This commit is contained in:
@@ -23,7 +23,7 @@ export function getCategory(id: string) {
|
|||||||
// 新增分类
|
// 新增分类
|
||||||
export function addCategory(data: object) {
|
export function addCategory(data: object) {
|
||||||
return newService({
|
return newService({
|
||||||
url: '/assets/category/addCategory',
|
url: '/assets/category/createCategory',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: data,
|
data: data,
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -27,8 +27,8 @@
|
|||||||
<el-form-item label="状态">
|
<el-form-item label="状态">
|
||||||
<el-switch
|
<el-switch
|
||||||
v-model="ruleForm.status"
|
v-model="ruleForm.status"
|
||||||
active-value="enabled"
|
active-value="1"
|
||||||
inactive-value="disabled"
|
inactive-value="0"
|
||||||
inline-prompt
|
inline-prompt
|
||||||
active-text="显示"
|
active-text="显示"
|
||||||
inactive-text="隐藏"
|
inactive-text="隐藏"
|
||||||
|
|||||||
Reference in New Issue
Block a user