diff --git a/README.md b/README.md index ff8dd78..1443f93 100644 --- a/README.md +++ b/README.md @@ -1,57 +1,5 @@ +#配置发布工具 - -## 权限控制 - -前端页面的权限控制有2种方式(role和permission), 在三个地方进行控制: - -1. 左边菜单的显示隐藏 - - 在路由表各项的meta中添加 roles: ['admin', 'editor'] 或 permissions: ['app:read'] - -2. 页面内各种按钮和弹窗 - - 使用v-role和v-permission控制, - - ```vue - - - Only - app:read can see this - - - v-role="['admin']" - - ``` - - 也可使用@utils/permission.ts中的checkRole和checkPermission方法 - - ```vue - - Admin can see this - - v-if="checkRole(['admin'])" - - - ``` - - - -3. 逻辑代码中判断 - - 使用@utils/permission.ts中的checkRole和checkPermission方法 \ No newline at end of file +项目分成2个工程 +根目录为vue的前端工程, 用于ui显示 +app目录为electron的工程, 用于打包各平台的可执行文件