🎈 perf: 优化加载 升级vue3.5 electron32等多个包 添加v-loading指令

This commit is contained in:
alger
2024-09-04 15:20:43 +08:00
parent a4eda61a86
commit b6a5461a1d
14 changed files with 268 additions and 86 deletions
+8
View File
@@ -70,6 +70,14 @@ const timerIsQr = (key: string) => {
return timer;
};
// 离开页面时
onBeforeUnmount(() => {
if (timerRef.value) {
clearInterval(timerRef.value);
timerRef.value = null;
}
});
// 是否扫码登陆
const isQr = ref(!isMobile.value);
const chooseQr = () => {