This commit is contained in:
shijingjing
2022-09-29 18:19:18 +08:00
parent be95bdfebb
commit a56d6e77ba

View File

@@ -420,12 +420,14 @@ export default {
methods: { methods: {
...mapActions(['getUserInfo']), ...mapActions(['getUserInfo']),
// 授权登录
getAuth() { getAuth() {
this.$nextTick(() => { this.$nextTick(() => {
this.token && this.getUserInfo() if(this.token) {
this.form.gatewayId = this.scene this.form.gatewayId = this.scene
this.form.gatewayName = this.getewayData.filter(item=> item.value == this.scene)?.[0].label || '' this.form.gatewayName = this.getewayData.filter(item=> item.value == this.scene)?.[0].label || ''
this.pageShow = true this.pageShow = true
}
}) })
}, },