Browse Source

前端-投资

armg 1 year ago
parent
commit
6ae044c268
2 changed files with 6 additions and 6 deletions
  1. 5 5
      ruoyi-ui/src/store/modules/permission.js
  2. 1 1
      ruoyi-ui/src/views/home.vue

+ 5 - 5
ruoyi-ui/src/store/modules/permission.js

@@ -12,7 +12,7 @@ const permission = {
     defaultRoutes: [],
     topbarRouters: [],
     sidebarRouters: [],
-    systemType: null,
+    // systemType: null,
     systemTitle: null
   },
   mutations: {
@@ -29,9 +29,9 @@ const permission = {
     SET_SIDEBAR_ROUTERS: (state, routes) => {
       state.sidebarRouters = routes
     },
-    SET_SYSTEMTYPE: (state, data) => {
-      state.systemType = data
-    },
+    // SET_SYSTEMTYPE: (state, data) => {
+    //   state.systemType = data
+    // },
     SET_SYSTEMTITLE: (state, data) => {
       state.systemTitle = data
     }
@@ -41,7 +41,7 @@ const permission = {
     GenerateRoutes({ commit, state }) {
       return new Promise(resolve => {
         // 向后端请求路由数据
-        let params = state.systemType ? { systemType: state.systemType } : {};
+        // let params = state.systemType ? { systemType: state.systemType } : {};
         getRouters(params).then(res => {
           const sdata = JSON.parse(JSON.stringify(res.data))
           const rdata = JSON.parse(JSON.stringify(res.data))

+ 1 - 1
ruoyi-ui/src/views/home.vue

@@ -21,7 +21,7 @@ export default {
     handleModuleJump(name, type, title) {
       let that = this;
       //更改侧边栏参数及title
-      this.$store.commit('SET_SYSTEMTYPE', type)
+      // this.$store.commit('SET_SYSTEMTYPE', type)
       this.$store.commit('SET_SYSTEMTITLE', title)
       //生成侧边栏   
       store.dispatch("GenerateRoutes").then((accessRoutes) => {