fix: 多门店切换修改

This commit is contained in:
GaoHao
2025-04-09 10:46:56 +08:00
parent 1cc9949cd8
commit 373fd88226
2 changed files with 9 additions and 5 deletions

View File

@@ -53,7 +53,10 @@ async function geiShopList() {
async function handleCommand(command) {
console.log(command)
let res = state.branchList.filter(v => v.shopId == command)[0]
// localStorage.setItem("shopId", res.shopId )
// localStorage.getItem("shopId")
if (localStorage.getItem("shopId") == command) {
return
}
await ShopApi.getBranchChange(res.shopId)
// localStorage.setItem("branch_shopId", res.shopId)
localStorage.setItem("shopName", res.shopName)