优化代码

This commit is contained in:
pengxiaolong
2025-08-21 21:36:08 +08:00
parent 5a39e461fe
commit 89014e306e
21 changed files with 370 additions and 151 deletions

View File

@@ -209,7 +209,7 @@ function agreedialogConfirm(){
ElMessage.success("同意成功");
PkIDInfodata.value.pkStatus = 1;
agreedialog.value = false
});
}).catch((err) => {});
}
//确认拒绝
@@ -221,7 +221,7 @@ function refusedialogConfirm(){
ElMessage.success("拒绝成功");
PkIDInfodata.value.pkStatus = 2;
refusedialog.value = false
});
}).catch((err) => {});
}
//同意邀请
@@ -244,7 +244,7 @@ watch(
}).then((res) => {
PkIDInfodata.value = res;
console.log("PkIDInfodata", res);
});
}).catch((err) => {});
pkArticleDetail({
id: newVal.payload.customData.pkIdA,
userId: info.value.id,
@@ -252,7 +252,7 @@ watch(
}).then((res) => {
ArticleDetailsA.value = res;
console.log("ArticleDetailsA", res);
});
}).catch((err) => {});
pkArticleDetail({
id: newVal.payload.customData.pkIdB,
userId: info.value.id,
@@ -260,7 +260,7 @@ watch(
}).then((res) => {
ArticleDetailsB.value = res;
console.log("ArticleDetailsB", res);
});
}).catch((err) => {});
},
{ immediate: true }
);
@@ -268,7 +268,7 @@ watch(
onMounted(() => {
getPromiseStorage("user").then((res) => {
info.value = res;
});
}).catch((err) => {});
});
onUpdated(() => {
// 组件更新后执行