Commit 1481051f authored by 罗超's avatar 罗超

移除开发环境二维码登录

parent a7c17c29
......@@ -160,6 +160,7 @@ export default {
};
},
created() {
console.log(process.env.NODE_ENV);
if (!this.$route.query.code) {
let autoLogin = localStorage.autoLogin
? JSON.parse(localStorage.autoLogin)
......@@ -167,7 +168,10 @@ export default {
this.account = autoLogin ? autoLogin.acc : "";
this.pwd = autoLogin ? autoLogin.pwd : "";
this.isAutoLogin = autoLogin ? true : false;
if (!this.isAutoLogin && this.$route.query.isa == "0021") {
if (
(!this.isAutoLogin && this.$route.query.isa == "0021") ||
process.env.NODE_ENV == "development"
) {
this.isAdminUser = true;
} else {
this.getWeChat();
......
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