From 19b377651cdd55427d28a2fcea220d4f06882a0e Mon Sep 17 00:00:00 2001
From: pany <939630029@qq.com>
Date: Fri, 22 Apr 2022 12:47:04 +0800
Subject: [PATCH] =?UTF-8?q?refactor:=20=E9=87=8D=E6=9E=84=E4=B8=BA?=
=?UTF-8?q?=E6=9B=B4=E6=8E=A8=E8=8D=90=E7=9A=84=20vue3=20=E4=BB=A3?=
=?UTF-8?q?=E7=A0=81=E7=BB=84=E7=BB=87=E6=96=B9=E5=BC=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
README.md | 23 ++-
package.json | 2 +-
src/App.vue | 19 ++-
src/components/Screenfull/index.vue | 22 +--
src/components/SvgIcon/index.vue | 12 +-
src/components/ThemeSwitch/index.vue | 37 ++---
src/config/async-route.ts | 21 +++
src/config/roles.ts | 14 --
src/constant/key.ts | 7 +-
src/directives/permission/index.ts | 2 +-
src/layout/components/AppMain.vue | 21 ++-
src/layout/components/BreadCrumb/index.vue | 40 +++---
src/layout/components/Hamburger/index.vue | 19 ++-
src/layout/components/NavigationBar/index.vue | 79 +++++------
src/layout/components/RightPanel/index.vue | 23 ++-
src/layout/components/Settings/index.vue | 127 ++++++++---------
src/layout/components/Sidebar/SidebarItem.vue | 132 +++++++++---------
.../components/Sidebar/SidebarItemLink.vue | 21 +--
src/layout/components/Sidebar/SidebarLogo.vue | 19 ++-
src/layout/components/Sidebar/index.vue | 67 ++++-----
src/layout/components/TagsView/index.vue | 96 ++++++-------
src/layout/index.vue | 40 +++---
src/layout/useResize.ts | 9 +-
src/main.ts | 10 +-
src/router/index.ts | 2 +-
src/router/permission.ts | 23 ++-
src/styles/theme/theme.scss | 1 +
src/views/dashboard/admin/index.vue | 1 -
src/views/dashboard/editor/index.vue | 1 -
src/views/dashboard/index.vue | 10 +-
src/views/login/index.vue | 102 +++++++-------
.../{switch-roles.vue => SwitchRoles.vue} | 31 ++--
src/views/permission/directive.vue | 27 ++--
src/views/permission/page.vue | 18 +--
src/views/redirect/index.vue | 10 +-
35 files changed, 548 insertions(+), 540 deletions(-)
create mode 100644 src/config/async-route.ts
delete mode 100644 src/config/roles.ts
rename src/views/permission/components/{switch-roles.vue => SwitchRoles.vue} (97%)
diff --git a/README.md b/README.md
index e7f7e3d..4cccd85 100644
--- a/README.md
+++ b/README.md
@@ -2,9 +2,9 @@
一个中后台管理系统基础解决方案,基于 Vue3、TypeScript、Element-Plus、Pinia 和 Vite.
-模板代码是从 [v3-admin v3.1.3](https://github.com/un-pany/v3-admin) 迁移而来,只是脚手架从 vue-cli 5.x 切换到了 vite,并作了一些繁琐我适配.
+模板代码是从 [v3-admin v3.1.3](https://github.com/un-pany/v3-admin) 迁移而来,只是脚手架从 vue-cli 5.x 切换到了 vite,并作了一些繁琐的适配.
-现在还是预发布 **3.1.3-rc2** 版本,正在努力重构中,等待正式版(v3.1.3)发布.
+现在还是预发布 **3.1.3-rc3** 版本,正在努力重构中,等待 vite 版的 v3.1.3 发布.
文档暂无,可以先用到 v3-admin 的文档,基本上是适用的.
@@ -16,6 +16,25 @@
- pnpm 版本 6.x
- 安装依赖: pnpm i
- 运行项目: pnpm dev
+- 预览测试环境: preview:stage
+- 预览正式环境: preview:prod
- 打包测试环境: pnpm build:stage
- 打包正式环境: pnpm build:prod
- 代码检测: pnpm lint
+
+## Git 提交规范
+
+- `feat` 增加新功能
+- `fix` 修复问题/BUG
+- `style` 代码风格相关无影响运行结果的
+- `perf` 优化/性能提升
+- `refactor` 重构
+- `revert` 撤销修改
+- `test` 测试相关
+- `docs` 文档/注释
+- `chore` 依赖更新/脚手架配置修改等
+- `workflow` 工作流改进
+- `ci` 持续集成
+- `types` 类型定义文件更改
+- `wip` 开发中
+- `mod` 不确定分类的修改
diff --git a/package.json b/package.json
index 3831472..b15c3ab 100644
--- a/package.json
+++ b/package.json
@@ -1,7 +1,7 @@
{
"name": "v3-admin-vite",
"private": true,
- "version": "3.1.3-rc2",
+ "version": "3.1.3-rc3",
"scripts": {
"dev": "vite",
"build:stage": "vue-tsc --noEmit && vite build --mode staging",
diff --git a/src/App.vue b/src/App.vue
index 45afd47..5342e10 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -1,15 +1,14 @@
+
+
-
-
diff --git a/src/components/Screenfull/index.vue b/src/components/Screenfull/index.vue
index 91d3d43..aa06539 100644
--- a/src/components/Screenfull/index.vue
+++ b/src/components/Screenfull/index.vue
@@ -1,16 +1,6 @@
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
diff --git a/src/components/SvgIcon/index.vue b/src/components/SvgIcon/index.vue
index 2add374..bf8fd9d 100644
--- a/src/components/SvgIcon/index.vue
+++ b/src/components/SvgIcon/index.vue
@@ -1,9 +1,3 @@
-
-
-
-
+
+
+
+