diff --git a/src/project/pingchang/AppGetewayRegister/getewayAdd.vue b/src/project/pingchang/AppGetewayRegister/getewayAdd.vue index 785534f..229b337 100644 --- a/src/project/pingchang/AppGetewayRegister/getewayAdd.vue +++ b/src/project/pingchang/AppGetewayRegister/getewayAdd.vue @@ -420,12 +420,14 @@ export default { methods: { ...mapActions(['getUserInfo']), + // 授权登录 getAuth() { this.$nextTick(() => { - this.token && this.getUserInfo() - this.form.gatewayId = this.scene - this.form.gatewayName = this.getewayData.filter(item=> item.value == this.scene)?.[0].label || '' - this.pageShow = true + if(this.token) { + this.form.gatewayId = this.scene + this.form.gatewayName = this.getewayData.filter(item=> item.value == this.scene)?.[0].label || '' + this.pageShow = true + } }) },