diff --git a/src/views/modules/logistics-fare/logistics-template/index.vue b/src/views/modules/logistics-fare/logistics-template/index.vue index b958aa4..fa49791 100644 --- a/src/views/modules/logistics-fare/logistics-template/index.vue +++ b/src/views/modules/logistics-fare/logistics-template/index.vue @@ -1,37 +1,42 @@ @@ -45,8 +50,12 @@ export default { searchForm: { name: "", }, + shopId: "", }; }, + created() { + this.shopId = JSON.parse(sessionStorage.getItem("userInfo")).shopId; + }, methods: { queryList(pageNo, pageSize) { this.$api.mer_admin @@ -144,7 +153,7 @@ export default { } // 将所有找到的路径合并成字符串返回 - return paths.map((path) =>

{path.join("/")}

); + return paths.map((path) =>

{path.join("/")}

); }; const appointMapper = { diff --git a/src/views/modules/product/index.vue b/src/views/modules/product/index.vue index 959977d..3e4ff20 100644 --- a/src/views/modules/product/index.vue +++ b/src/views/modules/product/index.vue @@ -100,9 +100,12 @@ export default { }, productFilterType: "SALE", selectList: [], - shopId: sessionStorage.getItem("userInfo").shopId, + shopId: "", }; }, + created() { + this.shopId = JSON.parse(sessionStorage.getItem("userInfo")).shopId; + }, methods: { addProduct() { this.$refs.addOrUpdate.toggle().add();