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 @@