浏览代码

自定义菜单传rootOrgId

Michael Wang 5 年之前
父节点
当前提交
9766476c06
共有 2 个文件被更改,包括 5 次插入3 次删除
  1. 3 1
      src/components/MainLayout/MainLayout.vue
  2. 2 2
      vue.config.js

+ 3 - 1
src/components/MainLayout/MainLayout.vue

@@ -202,7 +202,9 @@ export default {
     );
     this.ifShowQr = r2.data;
 
-    var url = "/api/ecs_core/rolePrivilege/getStudentClientMenu";
+    var url =
+      "/api/ecs_core/rolePrivilege/getStudentClientMenu?rootOrgId=" +
+      this.user.rootOrgId;
     // const params = new URLSearchParams();
     // params.append("groupCode", "BASIC_MENUS");
     // params.append("full", false);

+ 2 - 2
vue.config.js

@@ -210,8 +210,8 @@ module.exports = {
           },
         },
         {
-          // 站内消息3分钟获取一次
-          urlPattern: /\/api\/ecs_core\/rolePrivilege\/getStudentClientMenu/,
+          // 菜单3分钟获取一次
+          urlPattern: /\/api\/ecs_core\/rolePrivilege\/getStudentClientMenu\?rootOrgId=/,
           handler: "cacheFirst",
           options: {
             cacheableResponse: {