fix: 多门店切换修改
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user