|
@@ -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() {},
|
|
|
//生命周期-挂载之前
|