From 2f16a44d8f90bb40df52b05a691d80b888a4a415 Mon Sep 17 00:00:00 2001
From: whychdw <49690745@qq.com>
Date: 星期五, 11 九月 2020 13:54:49 +0800
Subject: [PATCH] 用户登录

---
 src/pages/home.vue |   22 ----------------------
 1 files changed, 0 insertions(+), 22 deletions(-)

diff --git a/src/pages/home.vue b/src/pages/home.vue
index ddb172b..b5094d9 100644
--- a/src/pages/home.vue
+++ b/src/pages/home.vue
@@ -137,30 +137,8 @@
             // 璁剧疆婵�娲荤殑瀵艰埅
             this.acTabs = menu.name;
         },
-        checkUserLogin() {
-            checkUserLogin().then(res=>{
-                let rs = JSON.parse(res.data.result);
-                if(rs.code == 1) {
-                    alert(rs.msg);
-                    this.$router.push('/login');
-                }else {
-                    clearInterval(this.timer);
-			        this.timer = setTimeout(()=>{
-                        this.checkUserLogin();
-                    },5000);
-                }
-            }).catch(error=>{
-                clearInterval(this.timer);
-                this.timer = setTimeout(()=>{
-                    this.checkUserLogin();
-                },5000);
-            });
-        },
     },
     mounted() {
-        // 寮�鍚敤鎴烽噸澶嶇櫥褰曟娴�
-        this.checkUserLogin();
-
         window.addEventListener('message', (msg)=>{
             // 澶勭悊鏁版嵁
             this.handleMessage(msg.data);

--
Gitblit v1.9.1