diff --git a/mock/asyncRoutes.ts b/mock/asyncRoutes.ts index 202bf36..fbfc09a 100644 --- a/mock/asyncRoutes.ts +++ b/mock/asyncRoutes.ts @@ -1,43 +1,5 @@ // 模拟后端动态生成路由 import { defineFakeRoute } from "vite-plugin-fake-server/client"; - -/** - * roles:页面级别权限,这里模拟二种 "admin"、"common" - * admin:管理员角色 - * common:普通角色 - */ -const permissionRouter = { - path: "/permission", - meta: { - title: "权限管理", - icon: "ep:lollipop", - rank: 10 - }, - children: [ - { - path: "/permission/page/index", - name: "PermissionPage", - meta: { - title: "页面权限", - roles: ["admin", "common"] - } - }, - { - path: "/permission/button/index", - name: "PermissionButton", - meta: { - title: "按钮权限", - roles: ["admin", "common"], - auths: [ - "permission:btn:add", - "permission:btn:edit", - "permission:btn:delete" - ] - } - } - ] -}; - export default defineFakeRoute([ { url: "/get-async-routes", @@ -45,7 +7,7 @@ export default defineFakeRoute([ response: () => { return { success: true, - data: [permissionRouter] + data: [] }; } } diff --git a/mock/login.ts b/mock/login.ts index a9c71b1..ad60a5f 100644 --- a/mock/login.ts +++ b/mock/login.ts @@ -10,9 +10,9 @@ export default defineFakeRoute([ return { success: true, data: { - avatar: "https://avatars.githubusercontent.com/u/44761321", + avatar: "https://avatars.githubusercontent.com/u/70969752?v=4", username: "admin", - nickname: "小铭", + nickname: "NiceAsiv", // 一个用户可能有多个角色 roles: ["admin"], accessToken: "eyJhbGciOiJIUzUxMiJ9.admin", diff --git a/public/platform-config.json b/public/platform-config.json index 6eccc74..92378c5 100644 --- a/public/platform-config.json +++ b/public/platform-config.json @@ -1,6 +1,6 @@ { - "Version": "5.7.0", - "Title": "PureAdmin", + "Version": "1.0.0", + "Title": "安全赋能平台", "FixedHeader": true, "HiddenSideBar": false, "MultiTagsCache": false, @@ -11,7 +11,7 @@ "OverallStyle": "light", "Grey": false, "Weak": false, - "HideTabs": false, + "HideTabs": true, "HideFooter": false, "Stretch": false, "SidebarStatus": true, diff --git a/src/layout/components/lay-footer/index.vue b/src/layout/components/lay-footer/index.vue index 7763134..d52974b 100644 --- a/src/layout/components/lay-footer/index.vue +++ b/src/layout/components/lay-footer/index.vue @@ -8,7 +8,7 @@ const TITLE = getConfig("Title");