Skip to content

Commit e0192e2

Browse files
committed
login
1 parent 5dd1df2 commit e0192e2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pages/admin/index.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,9 @@ export default Vue.extend({
102102
if(!this.$auth.user.robot_id) return
103103
let res = await this.$axios.$get('/admin/robot/'+this.$auth.user.robot_id);
104104
if (res) {
105-
this.robot = res;
106-
this.loading=false
105+
this.robot = res
106+
this.loading = false
107+
if(res.id) this.$auth.user.robotId = res.id
107108
if(res.status==1&&this.showQrcode){
108109
this.showQrcode = false
109110
this.$notification.success({message:'登录提示',description:'机器人登录成功'})

0 commit comments

Comments
 (0)