diff --git a/src/views/index/supplierTimePhone.vue b/src/views/index/supplierTimePhone.vue index 8e4b1b42..4bc278fc 100644 --- a/src/views/index/supplierTimePhone.vue +++ b/src/views/index/supplierTimePhone.vue @@ -100,7 +100,8 @@ export default { } }, mounted() { - this.supplierId = this.$route.query.supplierId || getSupplierIdFromToken() + const urlParams = new URLSearchParams(window.location.search); + this.supplierId = urlParams.get('supplierId') || this.$route.query.supplierId || getSupplierIdFromToken() if (!this.supplierId) { Toast('未获取到服务商信息') return