授权
This commit is contained in:
@@ -301,6 +301,8 @@
|
||||
<div class="btn-wrapper">
|
||||
<div class="btn" hover-class="text-hover" @click="submit">提交</div>
|
||||
</div>
|
||||
|
||||
<AiLogin ref="login"/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -375,7 +377,7 @@ export default {
|
||||
},
|
||||
|
||||
computed: {
|
||||
...mapState(['user'])
|
||||
...mapState(['user','token'])
|
||||
},
|
||||
|
||||
onLoad(o) {
|
||||
@@ -383,7 +385,6 @@ export default {
|
||||
this.form.id = o?.id
|
||||
this.getInfo(o.id)
|
||||
}
|
||||
this.form.gatewayId = decodeURIComponent(o.scene) || ''
|
||||
},
|
||||
onShow() {
|
||||
this.$areaId = this.user.$areaId
|
||||
@@ -391,6 +392,10 @@ export default {
|
||||
this.travelTypeDict = this.$dict.getDict('EP_travelType')
|
||||
})
|
||||
this.getewayList()
|
||||
if(!this.token) {
|
||||
this.$refs.login.show()
|
||||
this.form.gatewayId = decodeURIComponent(o.scene) || ''
|
||||
}
|
||||
},
|
||||
|
||||
watch: {
|
||||
|
||||
Reference in New Issue
Block a user