diff --git a/jshERP-web/src/views/user/Login.vue b/jshERP-web/src/views/user/Login.vue index 005e59da..8c76479e 100644 --- a/jshERP-web/src/views/user/Login.vue +++ b/jshERP-web/src/views/user/Login.vue @@ -7,6 +7,7 @@ size="large" v-decorator="['loginName',{initialValue:'', rules: validatorRules.loginName.rules}]" type="text" + @focus="initWeixin" placeholder="请输入用户名"> @@ -53,7 +54,7 @@
- +
@@ -119,8 +120,8 @@ created () { this.currdatetime = new Date().getTime(); Vue.ls.remove(ACCESS_TOKEN) - this.getRouterData(); - this.getRegisterFlag(); + this.getRouterData() + this.getRegisterFlag() }, methods: { ...mapActions([ "Login", "Logout" ]), @@ -284,6 +285,14 @@ } }) }, + initWeixin() { + if(this.showWeixinSpan()) { + let that = this + setTimeout(function() { + that.showWeixin() + },3000) + } + }, showWeixinSpan() { let host = window.location.host if(host === 'cloud.huaxiaerp.vip') {