改个小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) => {

View File

@@ -14,7 +14,7 @@ axios.interceptors.request.use( //响应拦截
if (config.url != '/tenement/pc/api/user/operation') showFullScreenLoading()
// 开发时登录用的,可以直接替换小程序的 authorization
// if (process.env.NODE_ENV == "development") config['headers']['authorization'] = "x2mmnl9grt51bpplj2k6ioiuummzhnw3"
if (process.env.NODE_ENV == "development") config['headers']['authorization'] = "0h870ovk2xckoqfsh8a3t3sg4sg5z7eg"
if (process.env.NODE_ENV == "development") config['headers']['authorization'] = "gifqtoiomgb2efu7tcr16kcgs2"
return config;
},
error => {