guanchunjie há 3 anos atrás
pai
commit
cc4755a52a
1 ficheiros alterados com 4 adições e 3 exclusões
  1. 4 3
      src/views/login/index.vue

+ 4 - 3
src/views/login/index.vue

@@ -545,6 +545,7 @@ export default {
         location.href = "/GCLS-Mobile-ROOT/#/EnterSys";
         console.log("移动端");
       } else {
+        console.log("PC端");
         let user_name = JSON.parse(localStorage.getItem("user_name"));
         if (user_name) {
           if (user_name.user_type == "TEACHER") {
@@ -583,11 +584,11 @@ export default {
     },
   },
   //生命周期 - 创建完成(可以访问当前this实例)
-  created() {
+  created() {},
+  //生命周期 - 挂载完成(可以访问DOM元素)
+  mounted() {
     this.browserRedirect();
   },
-  //生命周期 - 挂载完成(可以访问DOM元素)
-  mounted() {},
   //生命周期-创建之前
   beforeCreated() {},
   //生命周期-挂载之前