feat: 增加权限校验
This commit is contained in:
@@ -43,7 +43,7 @@ async function geiShopList() {
|
||||
state.branchList = res;
|
||||
if (!localStorage.getItem("shopName")) {
|
||||
state.shopName = state.branchList[0].shopName
|
||||
localStorage.setItem("branch_shopId", data.shopInfo.id)
|
||||
localStorage.setItem("branch_shopId", state.branchList[0].id)
|
||||
localStorage.setItem("shopName", state.branchList[0].shopName)
|
||||
} else {
|
||||
state.shopName = localStorage.getItem("shopName")
|
||||
|
||||
Reference in New Issue
Block a user