优化代码
This commit is contained in:
@@ -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(() => {
|
||||
// 组件更新后执行
|
||||
|
||||
Reference in New Issue
Block a user