From a19b0c48fefaf3bb2f99a0e858ed4af60bb978c2 Mon Sep 17 00:00:00 2001 From: zouzhibing Date: Fri, 1 Apr 2022 17:07:38 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E9=A1=B5=E9=9D=A2=E6=9D=83?= =?UTF-8?q?=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 14 +++--- package.json | 1 + src/components/u-Hamburger/index.vue | 50 ++++++++++++++++++++ src/layout/components/AppMain.vue | 12 +++-- src/layout/components/Sidebar/index.vue | 3 ++ src/layout/components/UHeader/index.vue | 17 +++++-- src/permission.js | 14 ++++-- src/router/index.ts | 6 ++- src/router/modules/charts.ts | 9 ++-- src/router/modules/components.ts | 9 ++-- src/router/modules/permission.ts | 24 ++++++++++ src/store/getters.ts | 1 + src/store/modules/permission.ts | 27 ++++++----- src/store/modules/user.ts | 22 +++++++-- src/styles/index.scss | 1 + src/styles/transition.scss | 62 +++++++++++++++++++++++++ src/views/home/index.vue | 5 +- src/views/permission/page.vue | 33 +++++++++++++ yarn.lock | 5 ++ 19 files changed, 271 insertions(+), 44 deletions(-) create mode 100644 src/components/u-Hamburger/index.vue create mode 100644 src/styles/transition.scss create mode 100644 src/views/permission/page.vue diff --git a/README.md b/README.md index eab9ae6..e5407be 100644 --- a/README.md +++ b/README.md @@ -1,15 +1,17 @@ -# vue-admin-plus +# 基于Vue3.0+TS+Element-plus实现后台管理系统 -## 下载依赖 +## 安装项目 ``` +# 克隆项目 +git clone -b vue3.0-antdv https://github.com/chuzhixin/vue-admin-better.git +# 安装依赖 yarn install -``` - -### 运行 -``` +# 本地开发 启动项目 yarn serve ``` + + ### 打包 ``` yarn build diff --git a/package.json b/package.json index eebca7e..8589810 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,7 @@ "mavon-editor": "^2.10.4", "md-editor-v3": "^1.11.3", "nprogress": "^0.2.0", + "path-to-regexp": "^6.2.0", "print-js": "^1.6.0", "vue": "^3.0.0", "vue-cropper": "^1.0.3", diff --git a/src/components/u-Hamburger/index.vue b/src/components/u-Hamburger/index.vue new file mode 100644 index 0000000..9561467 --- /dev/null +++ b/src/components/u-Hamburger/index.vue @@ -0,0 +1,50 @@ + + + + + diff --git a/src/layout/components/AppMain.vue b/src/layout/components/AppMain.vue index ce5d105..3b5617a 100644 --- a/src/layout/components/AppMain.vue +++ b/src/layout/components/AppMain.vue @@ -1,8 +1,14 @@ diff --git a/src/layout/components/Sidebar/index.vue b/src/layout/components/Sidebar/index.vue index f2dd7a3..e235f2e 100644 --- a/src/layout/components/Sidebar/index.vue +++ b/src/layout/components/Sidebar/index.vue @@ -33,6 +33,9 @@ return store.state.permission.routes }) + + console.log('permission_routes',permission_routes) + const activeMenu = computed(()=>{ const { meta, path } = route // if set path, the sidebar will highlight the path you set diff --git a/src/layout/components/UHeader/index.vue b/src/layout/components/UHeader/index.vue index ccc89fd..80654be 100644 --- a/src/layout/components/UHeader/index.vue +++ b/src/layout/components/UHeader/index.vue @@ -1,10 +1,16 @@