We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5dd1df2 commit e0192e2Copy full SHA for e0192e2
pages/admin/index.vue
@@ -102,8 +102,9 @@ export default Vue.extend({
102
if(!this.$auth.user.robot_id) return
103
let res = await this.$axios.$get('/admin/robot/'+this.$auth.user.robot_id);
104
if (res) {
105
- this.robot = res;
106
- this.loading=false
+ this.robot = res
+ this.loading = false
107
+ if(res.id) this.$auth.user.robotId = res.id
108
if(res.status==1&&this.showQrcode){
109
this.showQrcode = false
110
this.$notification.success({message:'登录提示',description:'机器人登录成功'})
0 commit comments