优化代码

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

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