diff --git a/src/router/index.js b/src/router/index.js index fdfd719..b9078c0 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -260,14 +260,6 @@ export const asyncRouterMap = [ authRule: ["system/systemParamConfig"] }, }, - { - path: "syncConfig", - name: "同步设置", - component: syncConfig, - meta: { - authRule: ["systemConfig/syncConfig"] - } - }, { path: "bussinessType", name: "扫码单据类型", @@ -335,15 +327,38 @@ export const asyncRouterMap = [ }, ] }, + + { - path: "spsSyncData", - component: spsSyncData, - name: "数据同步", + path: "/spsSyncMange", + component: Empty, + name: "同步管理", + redirect: "/spsSyncMange/spsSyncData", icon: "", meta: { - authRule: ["admin/spsSyncData"] - } + authRule: ["spsSyncMange/manage"] + }, + children: [ + { + path: "syncConfig", + name: "同步设置", + component: syncConfig, + meta: { + authRule: ["spsSyncMange/syncConfig"] + } + }, + { + path: "spsSyncData", + component: spsSyncData, + name: "数据同步", + icon: "", + meta: { + authRule: ["spsSyncMange/spsSyncData"] + } + }, + ] }, + // { // path: "bussinessType", // name: "单据类型",