修复网页登录进去显示未注册的BUG

This commit is contained in:
fangxiang 2022-03-10 19:34:52 +08:00
parent 740dee767d
commit 9e70ed2a51
1 changed files with 4 additions and 2 deletions

View File

@ -65,7 +65,10 @@ export default defineComponent({
);
const checkRegistered = () => {
if (GlobalData.getInstance().getCurrentClient()?.is_connected) {
if (
GlobalData.getInstance().getCurrentClient()?.is_connected &&
GlobalData.getInstance().getCurrentClient()?.is_login
) {
let register: any =
GlobalData.getInstance().applicationConfig?.registered;
try {
@ -104,7 +107,6 @@ export default defineComponent({
}
};
setInterval(checkRegistered, 5000);
checkRegistered();
return {
register_dialog,