From a681353fe1babd44562b60be0bbac70bfa7c2175 Mon Sep 17 00:00:00 2001
From: 疯狂的狮子Li <15040126243@163.com>
Date: 星期三, 12 七月 2023 10:48:33 +0800
Subject: [PATCH] fix 修复 解绑三方应用不刷新页面数据问题
---
src/views/system/user/profile/thirdParty.vue | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/src/views/system/user/profile/thirdParty.vue b/src/views/system/user/profile/thirdParty.vue
index 2e4e722..6879c1c 100644
--- a/src/views/system/user/profile/thirdParty.vue
+++ b/src/views/system/user/profile/thirdParty.vue
@@ -56,6 +56,8 @@
import { authUnlock, authBinding } from "@/api/system/social/auth";
import { PropType } from "vue";
+const { proxy } = getCurrentInstance() as ComponentInternalInstance;
+
const props = defineProps({
auths: {
type: Object as PropType<any>,
@@ -70,9 +72,10 @@
return authUnlock(row.id);
}).then((res: any) => {
if (res.code === 200) {
- ElMessage.success("瑙g粦鎴愬姛");
+ proxy?.$modal.msgSuccess("瑙g粦鎴愬姛");
+ proxy?.$tab.refreshPage();
} else {
- ElMessage.error(res.msg);
+ proxy?.$modal.msgError(res.msg);
}
}).catch(() => { });
};
@@ -82,7 +85,7 @@
if (res.code === 200) {
window.location.href = res.data;
} else {
- ElMessage.error(res.msg);
+ proxy?.$modal.msgError(res.msg);
}
});
};
--
Gitblit v1.9.3