From f4dc67c4ecc9968b2ed68f09d7cb914aea624a2d Mon Sep 17 00:00:00 2001 From: pany <939630029@qq.com> Date: Fri, 1 Jul 2022 16:25:51 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E4=BC=98=E5=8C=96=E6=96=87=E6=A1=A3?= =?UTF-8?q?=E5=92=8C=E6=B3=A8=E9=87=8A=E4=B8=AD=E7=9A=84=E5=8D=95=E8=AF=8D?= =?UTF-8?q?=E5=A4=A7=E5=B0=8F=E5=86=99=E5=92=8C=E8=AF=AD=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .eslintignore | 2 +- .eslintrc.js | 6 +++--- .gitignore | 4 ++-- .prettierignore | 2 +- README.md | 4 ++-- package.json | 2 +- prettier.config.js | 8 ++++---- src/App.vue | 4 ++-- src/config/layout.ts | 12 ++++++------ src/directives/permission/index.ts | 2 +- src/icons/index.ts | 2 +- src/layout/components/Settings/index.vue | 4 ++-- src/layout/components/Sidebar/index.vue | 2 +- src/layout/components/TagsView/index.vue | 2 +- src/layout/useResize.ts | 2 +- src/main.ts | 4 ++-- src/router/index.ts | 6 +++--- src/router/permission.ts | 10 +++++----- src/store/modules/app.ts | 2 +- src/store/modules/user.ts | 2 +- src/styles/index.scss | 4 ++-- src/styles/theme/theme.scss | 8 ++++---- src/styles/variables.css | 2 +- src/utils/cookies.ts | 2 +- src/utils/index.ts | 2 +- src/utils/service.ts | 16 ++++++++-------- src/views/login/index.vue | 2 +- src/views/permission/directive.vue | 4 +--- tsconfig.json | 4 ++-- vite.config.ts | 24 ++++++++++++------------ 30 files changed, 74 insertions(+), 76 deletions(-) diff --git a/.eslintignore b/.eslintignore index 4ba16f4..3ad7f87 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1,4 +1,4 @@ -# eslint 会忽略的文件 +# Eslint 会忽略的文件 .DS_Store node_modules diff --git a/.eslintrc.js b/.eslintrc.js index 3f99434..aca5fdb 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -33,7 +33,7 @@ module.exports = { } }, rules: { - // ts + // TS "@typescript-eslint/no-explicit-any": "off", "no-debugger": "off", "@typescript-eslint/explicit-module-boundary-types": "off", @@ -55,7 +55,7 @@ module.exports = { varsIgnorePattern: "^_" } ], - // vue + // Vue "vue/no-v-html": "off", "vue/require-default-prop": "off", "vue/require-explicit-emits": "off", @@ -72,7 +72,7 @@ module.exports = { math: "always" } ], - // prettier + // Prettier "prettier/prettier": [ "error", { diff --git a/.gitignore b/.gitignore index 7058dcc..7f8066d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,11 +1,11 @@ -# git 会忽略的文件 +# Git 会忽略的文件 .DS_Store node_modules dist dist-ssr -# local env files +# Local env files *.local # Logs diff --git a/.prettierignore b/.prettierignore index b77ab6c..ea9e31a 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,4 +1,4 @@ -# prettier 会忽略的文件 +# Prettier 会忽略的文件 .DS_Store node_modules diff --git a/README.md b/README.md index 52cb0d3..01e4ee4 100644 --- a/README.md +++ b/README.md @@ -2,9 +2,9 @@ 一个免费开源的中后台管理系统基础解决方案,基于 Vue3、TypeScript、Element-Plus、Pinia 和 Vite 等主流技术. -模板代码是从 [v3-admin](https://github.com/un-pany/v3-admin) 迁移而来,脚手架从 vue-cli 5.x 切换到了 vite 2.9.x,并作了一些繁琐的适配. +模板代码是从 [v3-admin](https://github.com/un-pany/v3-admin) 迁移而来,脚手架从 Vue-Cli 5.x 切换到了 Vite 2.9.x,并作了一些繁琐的适配. -更推荐大家使用该 vite 版本!以后的重心也会从 [v3-admin](https://github.com/un-pany/v3-admin) 偏向本仓库. +更推荐大家使用该 Vite 版本!以后的重心也会从 [v3-admin](https://github.com/un-pany/v3-admin) 偏向本仓库. - Electron 桌面版: [v3-electron-vite](https://github.com/un-pany/v3-electron-vite) diff --git a/package.json b/package.json index e1ccf3f..a894fbc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "v3-admin-vite", - "version": "3.1.9", + "version": "3.1.10", "description": "一个免费开源的中后台管理系统基础解决方案,基于 Vue3、TypeScript、Element-Plus、Pinia 和 Vite 等主流技术.", "author": { "name": "pany", diff --git a/prettier.config.js b/prettier.config.js index 174203b..b38ea19 100644 --- a/prettier.config.js +++ b/prettier.config.js @@ -2,9 +2,9 @@ module.exports = { /** 每一行的宽度 */ printWidth: 120, - /** tab 健的空格数 */ + /** Tab 键的空格数 */ tabWidth: 2, - /** 在对象中的括号之间用空格来间隔 */ + /** 在对象中的括号之间是否用空格来间隔 */ bracketSpacing: true, /** 箭头函数的参数无论有几个,都要括号包裹 */ arrowParens: "always", @@ -14,8 +14,8 @@ module.exports = { singleQuote: false, /** 对象或者数组的最后一个元素后面不要加逗号 */ trailingComma: "none", - /** 不加分号 */ + /** 是否加分号 */ semi: false, - /** 不使用 tab 格式化 */ + /** 是否使用 Tab 格式化 */ useTabs: false } diff --git a/src/App.vue b/src/App.vue index bb23c54..5f6e41a 100644 --- a/src/App.vue +++ b/src/App.vue @@ -2,8 +2,8 @@ import { useAppStore } from "@/store/modules/app" import zhCn from "element-plus/lib/locale/lang/zh-cn" -useAppStore().initTheme() // 初始化 theme -const locale = zhCn // element-plus 设置为中文 +useAppStore().initTheme() // 初始化主题 +const locale = zhCn // 将 Element-Plus 的语言设置为中文