小程序获取参数方式不一样

This commit is contained in:
aixianling
2022-08-24 11:16:17 +08:00
parent c917ac5acf
commit 6fe4959fcc

View File

@@ -46,13 +46,12 @@ export default {
list: [],
areaName: '',
$areaId: '',
pageShow: false
pageShow: false,
appName: null
}
},
computed: {
appName: v => v.$route.query?.appName || v.$options.appName
},
onLoad() {
onLoad(params) {
this.appName = params.appName || this.$options.appName
this.$loading()
this.areaId = this.$areaId
this.areaName = this.$areaName