改个小bug
This commit is contained in:
@@ -186,9 +186,14 @@ const stateObj = { // btn: 0 删除 编辑 1 删除 编辑 上架 2 删除 编
|
||||
"0": {
|
||||
text: "草稿",
|
||||
btn: 0,
|
||||
},
|
||||
"-1": {
|
||||
text: "",
|
||||
}
|
||||
}
|
||||
|
||||
console.log(data.status);
|
||||
|
||||
let stateData = ref(stateObj[data.status])
|
||||
// 监听修改的值
|
||||
watch(() => props.item.status, (newValue, oldValue) => {
|
||||
|
||||
Reference in New Issue
Block a user