Browse Source

feat(menu): 更新菜单标题并优化权限逻辑

- 将"门店装修"菜单标题更改为"基础设施服务"
- 移除权限检查中的临时返回语句,完善权限验证逻辑
- 修复权限判断条件,确保用户信息完整时才允许访问
- 添加用户手机号和创建ID的双重校验机制
- 优化权限提示信息处理方式
spy 2 weeks ago
parent
commit
0f5278826c
2 changed files with 1 additions and 3 deletions
  1. 1 1
      src/assets/json/authMenuList.json
  2. 0 2
      src/utils/permission.ts

+ 1 - 1
src/assets/json/authMenuList.json

@@ -188,7 +188,7 @@
       "redirect": "/storeDecoration/basicStoreInformation",
       "meta": {
         "icon": "Brush",
-        "title": "门店装修",
+        "title": "基础设施服务",
         "isLink": "",
         "isHide": false,
         "isFull": false,

+ 0 - 2
src/utils/permission.ts

@@ -8,8 +8,6 @@ import { getUserByPhone, getDetail } from "@/api/modules/homeEntry";
  */
 export async function usePermission(tip?: string) {
   let type = true;
-  // todo
-  return type;
   if (!localGet("createdId") && !localGet("geeker-user").userInfo.storeId) {
     let params = {
       phone: localGet("iphone") || localGet("geeker-user").userInfo.phone