From 5bf31344f7cf6214c5d2d43c3dca422bfe996abc Mon Sep 17 00:00:00 2001 From: cool Date: Thu, 14 Mar 2024 12:53:54 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4=E6=97=A0=E7=94=A8=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lock/db/base.db.lock | 1 - lock/db/dict.db.lock | 1 - lock/db/task.db.lock | 1 - lock/menu/base.menu.lock | 863 ------------------------------------- src/modules/base/config.ts | 2 +- src/modules/user/config.ts | 2 +- 6 files changed, 2 insertions(+), 868 deletions(-) delete mode 100644 lock/db/base.db.lock delete mode 100644 lock/db/dict.db.lock delete mode 100644 lock/db/task.db.lock delete mode 100644 lock/menu/base.menu.lock diff --git a/lock/db/base.db.lock b/lock/db/base.db.lock deleted file mode 100644 index b97732c..0000000 --- a/lock/db/base.db.lock +++ /dev/null @@ -1 +0,0 @@ -time consuming:230ms \ No newline at end of file diff --git a/lock/db/dict.db.lock b/lock/db/dict.db.lock deleted file mode 100644 index 8a78b97..0000000 --- a/lock/db/dict.db.lock +++ /dev/null @@ -1 +0,0 @@ -time consuming:190ms \ No newline at end of file diff --git a/lock/db/task.db.lock b/lock/db/task.db.lock deleted file mode 100644 index ff24515..0000000 --- a/lock/db/task.db.lock +++ /dev/null @@ -1 +0,0 @@ -time consuming:39ms \ No newline at end of file diff --git a/lock/menu/base.menu.lock b/lock/menu/base.menu.lock deleted file mode 100644 index 8a62f75..0000000 --- a/lock/menu/base.menu.lock +++ /dev/null @@ -1,863 +0,0 @@ -[ - { - "name": "系统管理", - "router": "/sys", - "perms": null, - "type": 0, - "icon": "icon-system", - "orderNum": 2, - "viewPath": null, - "keepAlive": true, - "isShow": true, - "childMenus": [ - { - "name": "权限管理", - "router": null, - "perms": null, - "type": 0, - "icon": "icon-auth", - "orderNum": 1, - "viewPath": null, - "keepAlive": false, - "isShow": true, - "childMenus": [ - { - "name": "菜单列表", - "router": "/sys/menu", - "perms": null, - "type": 1, - "icon": "icon-menu", - "orderNum": 2, - "viewPath": "modules/base/views/menu/index.vue", - "keepAlive": true, - "isShow": true, - "childMenus": [ - { - "name": "新增", - "router": null, - "perms": "base:sys:menu:add", - "type": 2, - "icon": null, - "orderNum": 1, - "viewPath": null, - "keepAlive": false, - "isShow": true, - "childMenus": [] - }, - { - "name": "删除", - "router": null, - "perms": "base:sys:menu:delete", - "type": 2, - "icon": null, - "orderNum": 2, - "viewPath": null, - "keepAlive": false, - "isShow": true, - "childMenus": [] - }, - { - "name": "查询", - "router": null, - "perms": "base:sys:menu:page,base:sys:menu:list,base:sys:menu:info", - "type": 2, - "icon": null, - "orderNum": 4, - "viewPath": null, - "keepAlive": false, - "isShow": true, - "childMenus": [] - }, - { - "name": "参数", - "router": "/test/aa", - "perms": null, - "type": 1, - "icon": "icon-goods", - "orderNum": 0, - "viewPath": "modules/base/views/info.vue", - "keepAlive": true, - "isShow": true, - "childMenus": [] - }, - { - "name": "编辑", - "router": null, - "perms": "base:sys:menu:info,base:sys:menu:update", - "type": 2, - "icon": null, - "orderNum": 0, - "viewPath": null, - "keepAlive": true, - "isShow": true, - "childMenus": [] - } - ] - }, - { - "name": "角色列表", - "router": "/sys/role", - "perms": null, - "type": 1, - "icon": "icon-dept", - "orderNum": 3, - "viewPath": "cool/modules/base/views/role.vue", - "keepAlive": true, - "isShow": true, - "childMenus": [ - { - "name": "新增", - "router": null, - "perms": "base:sys:role:add", - "type": 2, - "icon": null, - "orderNum": 1, - "viewPath": null, - "keepAlive": false, - "isShow": true, - "childMenus": [] - }, - { - "name": "删除", - "router": null, - "perms": "base:sys:role:delete", - "type": 2, - "icon": null, - "orderNum": 2, - "viewPath": null, - "keepAlive": false, - "isShow": true, - "childMenus": [] - }, - { - "name": "修改", - "router": null, - "perms": "base:sys:role:update", - "type": 2, - "icon": null, - "orderNum": 3, - "viewPath": null, - "keepAlive": false, - "isShow": true, - "childMenus": [] - }, - { - "name": "查询", - "router": null, - "perms": "base:sys:role:page,base:sys:role:list,base:sys:role:info", - "type": 2, - "icon": null, - "orderNum": 4, - "viewPath": null, - "keepAlive": false, - "isShow": true, - "childMenus": [] - } - ] - }, - { - "name": "用户列表", - "router": "/sys/user", - "perms": null, - "type": 1, - "icon": "icon-user", - "orderNum": 0, - "viewPath": "modules/base/views/user/index.vue", - "keepAlive": true, - "isShow": true, - "childMenus": [ - { - "name": "部门列表", - "router": null, - "perms": "base:sys:department:list", - "type": 2, - "icon": null, - "orderNum": 0, - "viewPath": null, - "keepAlive": true, - "isShow": true, - "childMenus": [] - }, - { - "name": "新增部门", - "router": null, - "perms": "base:sys:department:add", - "type": 2, - "icon": null, - "orderNum": 0, - "viewPath": null, - "keepAlive": true, - "isShow": true, - "childMenus": [] - }, - { - "name": "更新部门", - "router": null, - "perms": "base:sys:department:update", - "type": 2, - "icon": null, - "orderNum": 0, - "viewPath": null, - "keepAlive": true, - "isShow": true, - "childMenus": [] - }, - { - "name": "删除部门", - "router": null, - "perms": "base:sys:department:delete", - "type": 2, - "icon": null, - "orderNum": 0, - "viewPath": null, - "keepAlive": true, - "isShow": true, - "childMenus": [] - }, - { - "name": "部门排序", - "router": null, - "perms": "base:sys:department:order", - "type": 2, - "icon": null, - "orderNum": 0, - "viewPath": null, - "keepAlive": true, - "isShow": true, - "childMenus": [] - }, - { - "name": "用户转移", - "router": null, - "perms": "base:sys:user:move", - "type": 2, - "icon": null, - "orderNum": 0, - "viewPath": null, - "keepAlive": true, - "isShow": true, - "childMenus": [] - }, - { - "name": "新增", - "router": null, - "perms": "base:sys:user:add", - "type": 2, - "icon": null, - "orderNum": 0, - "viewPath": null, - "keepAlive": true, - "isShow": true, - "childMenus": [] - }, - { - "name": "删除", - "router": null, - "perms": "base:sys:user:delete", - "type": 2, - "icon": null, - "orderNum": 0, - "viewPath": null, - "keepAlive": true, - "isShow": true, - "childMenus": [] - }, - { - "name": "修改", - "router": null, - "perms": "base:sys:user:delete,base:sys:user:update", - "type": 2, - "icon": null, - "orderNum": 0, - "viewPath": null, - "keepAlive": true, - "isShow": true, - "childMenus": [] - }, - { - "name": "查询", - "router": null, - "perms": "base:sys:user:page,base:sys:user:list,base:sys:user:info", - "type": 2, - "icon": null, - "orderNum": 0, - "viewPath": null, - "keepAlive": true, - "isShow": true, - "childMenus": [] - } - ] - } - ] - }, - { - "name": "参数配置", - "router": null, - "perms": null, - "type": 0, - "icon": "icon-params", - "orderNum": 3, - "viewPath": null, - "keepAlive": true, - "isShow": true, - "childMenus": [ - { - "name": "参数列表", - "router": "/sys/param", - "perms": null, - "type": 1, - "icon": "icon-menu", - "orderNum": 0, - "viewPath": "cool/modules/base/views/param.vue", - "keepAlive": true, - "isShow": true, - "childMenus": [ - { - "name": "新增", - "router": null, - "perms": "base:sys:param:add", - "type": 2, - "icon": null, - "orderNum": 0, - "viewPath": null, - "keepAlive": true, - "isShow": true, - "childMenus": [] - }, - { - "name": "修改", - "router": null, - "perms": "base:sys:param:info,base:sys:param:update", - "type": 2, - "icon": null, - "orderNum": 0, - "viewPath": null, - "keepAlive": true, - "isShow": true, - "childMenus": [] - }, - { - "name": "删除", - "router": null, - "perms": "base:sys:param:delete", - "type": 2, - "icon": null, - "orderNum": 0, - "viewPath": null, - "keepAlive": true, - "isShow": true, - "childMenus": [] - }, - { - "name": "查看", - "router": null, - "perms": "base:sys:param:page,base:sys:param:list,base:sys:param:info", - "type": 2, - "icon": null, - "orderNum": 0, - "viewPath": null, - "keepAlive": true, - "isShow": true, - "childMenus": [] - } - ] - } - ] - }, - { - "name": "监控管理", - "router": null, - "perms": null, - "type": 0, - "icon": "icon-monitor", - "orderNum": 9, - "viewPath": null, - "keepAlive": true, - "isShow": true, - "childMenus": [ - { - "name": "请求日志", - "router": "/sys/log", - "perms": null, - "type": 1, - "icon": "icon-log", - "orderNum": 1, - "viewPath": "cool/modules/base/views/log.vue", - "keepAlive": true, - "isShow": true, - "childMenus": [ - { - "name": "权限", - "router": null, - "perms": "base:sys:log:page,base:sys:log:clear,base:sys:log:getKeep,base:sys:log:setKeep", - "type": 2, - "icon": null, - "orderNum": 1, - "viewPath": null, - "keepAlive": false, - "isShow": true, - "childMenus": [] - } - ] - } - ] - }, - { - "name": "任务管理", - "router": null, - "perms": null, - "type": 0, - "icon": "icon-activity", - "orderNum": 9, - "viewPath": null, - "keepAlive": true, - "isShow": true, - "childMenus": [ - { - "name": "任务列表", - "router": "/task/list", - "perms": null, - "type": 1, - "icon": "icon-menu", - "orderNum": 0, - "viewPath": "modules/task/views/list.vue", - "keepAlive": true, - "isShow": true, - "childMenus": [ - { - "name": "权限", - "router": null, - "perms": "task:info:page,task:info:list,task:info:info,task:info:add,task:info:delete,task:info:update,task:info:stop,task:info:start,task:info:once,task:info:log", - "type": 2, - "icon": null, - "orderNum": 0, - "viewPath": null, - "keepAlive": true, - "isShow": true, - "childMenus": [] - } - ] - } - ] - } - ] - }, - { - "name": "框架教程", - "router": "/tutorial", - "perms": null, - "type": 0, - "icon": "icon-task", - "orderNum": 98, - "viewPath": null, - "keepAlive": true, - "isShow": true, - "childMenus": [ - { - "name": "文档官网", - "router": "/tutorial/doc", - "perms": null, - "type": 1, - "icon": "icon-log", - "orderNum": 0, - "viewPath": "https://admin.cool-js.com", - "keepAlive": true, - "isShow": true, - "childMenus": [] - }, - { - "name": "crud 示例", - "router": "/demo/crud", - "perms": null, - "type": 1, - "icon": "icon-favor", - "orderNum": 1, - "viewPath": "modules/demo/views/crud/index.vue", - "keepAlive": true, - "isShow": true, - "childMenus": [] - } - ] - }, - { - "name": "通用", - "router": null, - "perms": null, - "type": 0, - "icon": "icon-radioboxfill", - "orderNum": 99, - "viewPath": null, - "keepAlive": true, - "isShow": false, - "childMenus": [ - { - "name": "图片上传", - "router": null, - "perms": "space:info:page,space:info:list,space:info:info,space:info:add,space:info:delete,space:info:update,space:type:page,space:type:list,space:type:info,space:type:add,space:type:delete,space:type:update", - "type": 2, - "icon": null, - "orderNum": 1, - "viewPath": null, - "keepAlive": true, - "isShow": true, - "childMenus": [] - } - ] - }, - { - "name": "首页", - "router": "/", - "perms": null, - "type": 1, - "icon": null, - "orderNum": 0, - "viewPath": "modules/demo/views/home/index.vue", - "keepAlive": true, - "isShow": false, - "childMenus": [] - }, - { - "name": "数据管理", - "router": null, - "perms": null, - "type": 0, - "icon": "icon-data", - "orderNum": 7, - "viewPath": null, - "keepAlive": true, - "isShow": true, - "childMenus": [ - { - "name": "字典管理", - "router": "/dict/list", - "perms": null, - "type": 1, - "icon": "icon-dict", - "orderNum": 3, - "viewPath": "modules/dict/views/list.vue", - "keepAlive": true, - "isShow": true, - "childMenus": [ - { - "name": "删除", - "router": null, - "perms": "dict:info:delete", - "type": 2, - "icon": null, - "orderNum": 0, - "viewPath": null, - "keepAlive": true, - "isShow": true, - "childMenus": [] - }, - { - "name": "修改", - "router": null, - "perms": "dict:info:update,dict:info:info", - "type": 2, - "icon": null, - "orderNum": 0, - "viewPath": null, - "keepAlive": true, - "isShow": true, - "childMenus": [] - }, - { - "name": "获得字典数据", - "router": null, - "perms": "dict:info:data", - "type": 2, - "icon": null, - "orderNum": 0, - "viewPath": null, - "keepAlive": true, - "isShow": true, - "childMenus": [] - }, - { - "name": "单个信息", - "router": null, - "perms": "dict:info:info", - "type": 2, - "icon": null, - "orderNum": 0, - "viewPath": null, - "keepAlive": true, - "isShow": true, - "childMenus": [] - }, - { - "name": "列表查询", - "router": null, - "perms": "dict:info:list", - "type": 2, - "icon": null, - "orderNum": 0, - "viewPath": null, - "keepAlive": true, - "isShow": true, - "childMenus": [] - }, - { - "name": "分页查询", - "router": null, - "perms": "dict:info:page", - "type": 2, - "icon": null, - "orderNum": 0, - "viewPath": null, - "keepAlive": true, - "isShow": true, - "childMenus": [] - }, - { - "name": "新增", - "router": null, - "perms": "dict:info:add", - "type": 2, - "icon": null, - "orderNum": 0, - "viewPath": null, - "keepAlive": true, - "isShow": true, - "childMenus": [] - }, - { - "name": "组权限", - "router": null, - "perms": "dict:type:list,dict:type:update,dict:type:delete,dict:type:add", - "type": 2, - "icon": null, - "orderNum": 0, - "viewPath": null, - "keepAlive": true, - "isShow": true, - "childMenus": [] - } - ] - }, - { - "name": "数据回收站", - "router": "/recycle/data", - "perms": null, - "type": 1, - "icon": "icon-delete", - "orderNum": 6, - "viewPath": "modules/recycle/views/data.vue", - "keepAlive": true, - "isShow": true, - "childMenus": [ - { - "name": "恢复数据", - "router": null, - "perms": "recycle:data:restore", - "type": 2, - "icon": null, - "orderNum": 0, - "viewPath": null, - "keepAlive": true, - "isShow": true, - "childMenus": [] - }, - { - "name": "单个信息", - "router": null, - "perms": "recycle:data:info", - "type": 2, - "icon": null, - "orderNum": 0, - "viewPath": null, - "keepAlive": true, - "isShow": true, - "childMenus": [] - }, - { - "name": "分页查询", - "router": null, - "perms": "recycle:data:page", - "type": 2, - "icon": null, - "orderNum": 0, - "viewPath": null, - "keepAlive": true, - "isShow": true, - "childMenus": [] - } - ] - }, - { - "name": "文件管理", - "router": "/upload/list", - "perms": null, - "type": 1, - "icon": "icon-log", - "orderNum": 5, - "viewPath": "modules/space/views/list.vue", - "keepAlive": true, - "isShow": true, - "childMenus": [ - { - "name": "权限", - "router": null, - "perms": "space:type:delete,space:type:update,space:type:info,space:type:list,space:type:page,space:type:add,space:info:getConfig,space:info:delete,space:info:update,space:info:info,space:info:list,space:info:page,space:info:add", - "type": 2, - "icon": null, - "orderNum": 0, - "viewPath": null, - "keepAlive": true, - "isShow": true, - "childMenus": [] - } - ] - } - ] - }, - { - "name": "用户管理", - "router": null, - "perms": null, - "type": 0, - "icon": "icon-user", - "orderNum": 11, - "viewPath": null, - "keepAlive": true, - "isShow": true, - "childMenus": [ - { - "name": "用户列表", - "router": "/user/list", - "perms": null, - "type": 1, - "icon": "icon-menu", - "orderNum": 1, - "viewPath": "modules/user/views/list.vue", - "keepAlive": true, - "isShow": true, - "childMenus": [ - { - "name": "删除", - "router": null, - "perms": "user:info:delete", - "type": 2, - "icon": null, - "orderNum": 0, - "viewPath": null, - "keepAlive": true, - "isShow": true, - "childMenus": [] - }, - { - "name": "修改", - "router": null, - "perms": "user:info:update,user:info:info", - "type": 2, - "icon": null, - "orderNum": 0, - "viewPath": null, - "keepAlive": true, - "isShow": true, - "childMenus": [] - }, - { - "name": "单个信息", - "router": null, - "perms": "user:info:info", - "type": 2, - "icon": null, - "orderNum": 0, - "viewPath": null, - "keepAlive": true, - "isShow": true, - "childMenus": [] - }, - { - "name": "列表查询", - "router": null, - "perms": "user:info:list", - "type": 2, - "icon": null, - "orderNum": 0, - "viewPath": null, - "keepAlive": true, - "isShow": true, - "childMenus": [] - }, - { - "name": "分页查询", - "router": null, - "perms": "user:info:page", - "type": 2, - "icon": null, - "orderNum": 0, - "viewPath": null, - "keepAlive": true, - "isShow": true, - "childMenus": [] - }, - { - "name": "新增", - "router": null, - "perms": "user:info:add", - "type": 2, - "icon": null, - "orderNum": 0, - "viewPath": null, - "keepAlive": true, - "isShow": true, - "childMenus": [] - } - ] - } - ] - }, - { - "name": "扩展管理", - "router": null, - "perms": null, - "type": 0, - "icon": "icon-favor", - "orderNum": 8, - "viewPath": null, - "keepAlive": true, - "isShow": true, - "childMenus": [ - { - "name": "后端插件", - "router": "/helper/plugins/serve", - "perms": null, - "type": 1, - "icon": "icon-component", - "orderNum": 2, - "viewPath": "modules/helper/views/plugins/serve.vue", - "keepAlive": true, - "isShow": true, - "childMenus": [ - { - "name": "权限", - "router": null, - "perms": "plugin:info:install,plugin:info:delete,plugin:info:update,plugin:info:page,plugin:info:info", - "type": 2, - "icon": null, - "orderNum": 0, - "viewPath": null, - "keepAlive": true, - "isShow": true, - "childMenus": [] - } - ] - }, - { - "name": "前端插件", - "router": "/helper/plugins/vue", - "perms": null, - "type": 1, - "icon": "icon-vue", - "orderNum": 1, - "viewPath": "modules/helper/views/plugins/vue.vue", - "keepAlive": true, - "isShow": true, - "childMenus": [] - } - ] - } -] \ No newline at end of file diff --git a/src/modules/base/config.ts b/src/modules/base/config.ts index 62432e8..62e3189 100644 --- a/src/modules/base/config.ts +++ b/src/modules/base/config.ts @@ -22,7 +22,7 @@ export default () => { // 单点登录 sso: false, // 注意: 最好重新修改,防止破解 - secret: 'aaf4eb00cfd711ee8f8aa79e6e22494b', + secret: 'cool-admin-xxxxxx', // token token: { // 2小时过期,需要用刷新token diff --git a/src/modules/user/config.ts b/src/modules/user/config.ts index 938f374..6e0946b 100644 --- a/src/modules/user/config.ts +++ b/src/modules/user/config.ts @@ -41,7 +41,7 @@ export default () => { // 刷新token 过期时间,单位秒 refreshExpire: 60 * 60 * 24 * 30, // jwt 秘钥 - secret: 'aaf4eb01cfd711ee8f8aa79e6e22494b', + secret: 'cool-app-xxxxxx', }, } as ModuleConfig; };