多门店切换修改

This commit is contained in:
GaoHao
2025-04-08 17:49:08 +08:00
parent 250f42ec01
commit 7ccd96a775
6 changed files with 38 additions and 62 deletions

View File

@@ -22,8 +22,8 @@ service.interceptors.request.use(
} else {
delete config.headers.token;
}
config.headers.shopId = config.headers.shopId || localStorage.getItem("shopId");
// config.headers.shopId = config.headers.shopId || useUserStoreHook().userInfo.id;
// config.headers.shopId = config.headers.shopId || localStorage.getItem("branch_shopId");
config.headers.shopId = config.headers.shopId || useUserStoreHook().userInfo.id;
return config;
},
(error) => Promise.reject(error)