改个小bug

This commit is contained in:
A1300399510
2024-03-15 19:07:26 +08:00
parent 22aede868c
commit b5c2e8bbe5
6 changed files with 10 additions and 5 deletions

View File

@@ -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) => {