Commit 50a0bf8d authored by YIyiyi's avatar YIyiyi

pref:新增登录页返回判断

parent 812d38e1
...@@ -220,7 +220,7 @@ ...@@ -220,7 +220,7 @@
</template> </template>
<!-- 电话 --> <!-- 电话 -->
<template slot="mobile" slot-scope="text"> <template slot="mobile" slot-scope="text">
<span>{{ text.mobile ? text.mobile : "--" }}</span> <span>{{ text.mobile || text.phone || "--" }}</span>
</template> </template>
<!-- 称号 --> <!-- 称号 -->
<template slot="dangyuan" slot-scope="text"> <template slot="dangyuan" slot-scope="text">
......
# 开发环境配置 # 开发环境配置
NODE_ENV = development NODE_ENV = development
VUE_APP_API_BASE_URL=http://192.168.0.98:11078 #VUE_APP_API_BASE_URL=http://192.168.0.98:11078
#宜宾
VUE_APP_API_BASE_URL=http://10.12.185.213:11072
...@@ -67,6 +67,12 @@ export default { ...@@ -67,6 +67,12 @@ export default {
}, },
}; };
}, },
created() {
let token = this.$Storage.get(2, "Authorization");
if (token) {
this.$router.push("/home/dataManagement/dataAdmin");
}
},
methods: { methods: {
// ...mapMutations("user", ["SET_USERDATA"]), // ...mapMutations("user", ["SET_USERDATA"]),
// ...mapActions("user", ["getCensusList", "getAppsList"]), // ...mapActions("user", ["getCensusList", "getAppsList"]),
...@@ -168,4 +174,4 @@ input:-ms-input-placeholder { ...@@ -168,4 +174,4 @@ input:-ms-input-placeholder {
color: rgb(111, 164, 227); color: rgb(111, 164, 227);
font-size: 16px; font-size: 16px;
} }
</style> </style>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment