feat: 增加权限校验

This commit is contained in:
GaoHao
2025-04-11 18:26:10 +08:00
parent cc13161f16
commit b92f39fe89
4 changed files with 19 additions and 1 deletions

View File

@@ -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")