feat: 修改刷新问题

This commit is contained in:
zerosaturation 2026-06-03 18:18:44 +08:00
parent 4aa11903f4
commit 12e08703d4
2 changed files with 4 additions and 2 deletions

View File

@ -176,6 +176,7 @@ watch(
);
onMounted(() => {
loadUsers();
isComponentMounted = true;
//
uni.$on("assetLiked", ({ asset_id, data }) => {
@ -198,7 +199,7 @@ onMounted(() => {
});
onShow(()=>{
loadUsers();
// loadUsers();
})

View File

@ -193,10 +193,11 @@ const loadData = async () => {
onMounted(() => {
uni.$on("assetLiked", onAssetLiked);
loadData();
});
onShow(() => {
loadData();
// loadData();
});
onUnmounted(() => {