diff --git a/src/project/pingchang/AppGetewayRegister/getewayAdd.vue b/src/project/pingchang/AppGetewayRegister/getewayAdd.vue index 2fb333b..e6fdad7 100644 --- a/src/project/pingchang/AppGetewayRegister/getewayAdd.vue +++ b/src/project/pingchang/AppGetewayRegister/getewayAdd.vue @@ -423,13 +423,11 @@ export default { // 授权登录 getAuth() { this.$nextTick(() => { - this.$forceUpdate() if(this.token) { - setTimeout(()=> { - this.form.gatewayId = this.scene - this.form.gatewayName = this.getewayData.filter(item=> item.value == this.scene)?.[0].label || '' - this.pageShow = true - }, 400) + this.form.gatewayId = this.scene + const item = this.getewayData.filter(item=> item.value == this.scene) + this.form.gatewayName = item[0].label + this.pageShow = true } }) },