添加H5接受参数
This commit is contained in:
@@ -118,6 +118,14 @@ export default {
|
||||
};
|
||||
},
|
||||
created() {
|
||||
let url = this.$route.query.url;
|
||||
if (url) {
|
||||
this.rankingConfig.requestConfig.url = Array.isArray(url) ? url[0] : url;
|
||||
}
|
||||
let code = this.$route.query.orgCode;
|
||||
if (code) {
|
||||
this.rankingConfig.requestConfig.orgCode = Array.isArray(code) ? code[0] : code;
|
||||
}
|
||||
this.loadDataUrl();
|
||||
},
|
||||
beforeDestroy() {
|
||||
|
||||
@@ -93,7 +93,7 @@ export default {
|
||||
url: "yyjk.cqygjk.com",
|
||||
suffix: "/gateway",
|
||||
urlPrefix: "/food/userRank",
|
||||
orgCode: "A01A86",
|
||||
orgCode: "A01A86,A01A36",
|
||||
canteenId: "1599670511042785282,1746801170592919553",
|
||||
pageSize: 0
|
||||
},
|
||||
@@ -118,6 +118,18 @@ export default {
|
||||
};
|
||||
},
|
||||
created() {
|
||||
let url = this.$route.query.url;
|
||||
if (url) {
|
||||
this.rankingConfig.requestConfig.url = Array.isArray(url) ? url[0] : url;
|
||||
}
|
||||
let code = this.$route.query.orgCode;
|
||||
if (code) {
|
||||
this.rankingConfig.requestConfig.orgCode = Array.isArray(code) ? code[0] : code;
|
||||
}
|
||||
let canteenId = this.$route.query.canteenId;
|
||||
if (canteenId) {
|
||||
this.rankingConfig.requestConfig.canteenId = Array.isArray(canteenId) ? canteenId[0] : canteenId;
|
||||
}
|
||||
this.loadDataUrl();
|
||||
},
|
||||
beforeDestroy() {
|
||||
|
||||
Reference in New Issue
Block a user