task#10595,crm系统跳转H5动态取参

This commit is contained in:
2024-01-31 14:16:33 +08:00
parent e7acce0e11
commit 3694c8e94d
2 changed files with 18 additions and 2 deletions

View File

@ -53,7 +53,8 @@ export default {
}
},
created() {
this.id = this.$route.params.id;
const urlParams = new URLSearchParams(window.location.search);
this.id = this.$route.params.id || urlParams.get('id');
},
async mounted() {
await this.batchOrderCount();