Merge branch 'main' into gitee

This commit is contained in:
xiaoxian521 2022-12-26 12:56:01 +08:00
commit c951880e3a
25 changed files with 432 additions and 372 deletions

View File

@ -1,3 +1,19 @@
# 3.9.6 (2022-12-19)
### 🎫 Chores
- Upgrade `vite4` version
### 🐞 Bug fixes
- Fix the problem that `hmr` of `vite` is slow due to the wrong way of importing `tailwind.css`
### 🍏 Perf
- Update [@pureadmin/theme](https://github.com/pure-admin/pure-admin-theme) to the latest version, bringing more friendly type hints
- Optimize [PureTableBar](https://github.com/xiaoxian521/vue-pure-admin/tree/main/src/components/RePureTableBar) component
- Optimize the business code of the system management page to bring better code reference
# 3.9.5 (2022-12-13)
### ✔️ refactor

View File

@ -1,3 +1,19 @@
# 3.9.6 (2022-12-19)
### 🎫 Chores
- Upgrade `vite4` version
### 🐞 Bug fixes
- Fix the problem that `hmr` of `vite` is slow due to the wrong way of importing `tailwind.css`
### 🍏 Perf
- Update [@pureadmin/theme](https://github.com/pure-admin/pure-admin-theme) to the latest version, bringing more friendly type hints
- Optimize [PureTableBar](https://github.com/xiaoxian521/vue-pure-admin/tree/main/src/components/RePureTableBar) component
- Optimize the business code of the system management page to bring better code reference
# 3.9.5 (2022-12-13)
### ✔️ refactor

View File

@ -1,3 +1,19 @@
# 3.9.6 (2022-12-19)
### 🎫 Chores
- 升级 `vite4` 版本
### 🐞 Bug fixes
- 修复 `tailwind.css` 错误的引入方式导致 `vite``hmr` 慢的问题
### 🍏 Perf
- 更新 [@pureadmin/theme](https://github.com/pure-admin/pure-admin-theme) 至最新版,带来更友好的类型提示
- 优化 [PureTableBar](https://github.com/xiaoxian521/vue-pure-admin/tree/main/src/components/RePureTableBar) 组件
- 优化系统管理页面业务代码,带来更好的代码参考
# 3.9.5 (2022-12-13)
### ✔️ refactor

View File

@ -140,7 +140,7 @@ pnpm build
[xiaoxian521](https://github.com/xiaoxian521)、[Ten-K](https://github.com/Ten-K)
## 捐赠
## 支持
如果您觉得这个项目对您有帮助,可以帮作者买一杯果汁 🍹 表示支持
@ -148,9 +148,7 @@ pnpm build
## `QQ` 交流群
一群已满,下面是二群,群里严禁`黄``赌``毒``vpn`等违法行为!
<img src="https://yiming_chang.gitee.io/pure-admin-doc/img/support/qq.png" width="150px" height="225px" />
[点击去加入](https://yiming_chang.gitee.io/pure-admin-doc/pages/support/#qq-%E4%BA%A4%E6%B5%81%E7%BE%A4)
## 许可证
@ -158,7 +156,7 @@ pnpm build
[MIT © xiaoxian521-2020](./LICENSE)
## 捐赠
## 支持
非常感谢您们的支持,相信项目会越来越好 :heart:

View File

@ -27,9 +27,4 @@ const warpperEnv = (envConf: Recordable): ViteEnv => {
return ret;
};
/** 获取环境变量 */
const loadEnv = (): ViteEnv => {
return import.meta.env;
};
export { warpperEnv, loadEnv };
export { warpperEnv };

View File

@ -6,10 +6,10 @@ import svgLoader from "vite-svg-loader";
import vueJsx from "@vitejs/plugin-vue-jsx";
import { viteMockServe } from "vite-plugin-mock";
import { configCompressPlugin } from "./compress";
import VueI18n from "@intlify/vite-plugin-vue-i18n";
import { visualizer } from "rollup-plugin-visualizer";
import removeConsole from "vite-plugin-remove-console";
import themePreprocessorPlugin from "@pureadmin/theme";
import VueI18nPlugin from "@intlify/unplugin-vue-i18n/vite";
import DefineOptions from "unplugin-vue-define-options/vite";
import { genScssMultipleScopeVars } from "../src/layout/theme";
@ -22,8 +22,7 @@ export function getPluginsList(
const lifecycle = process.env.npm_lifecycle_event;
return [
vue(),
// https://github.com/intlify/bundle-tools/tree/main/packages/vite-plugin-vue-i18n
VueI18n({
VueI18nPlugin({
runtimeOnly: true,
compositionOnly: true,
include: [resolve("locales/**")]

View File

@ -1,6 +1,6 @@
{
"name": "vue-pure-admin",
"version": "3.9.5",
"version": "3.9.6",
"private": true,
"scripts": {
"dev": "NODE_OPTIONS=--max-old-space-size=4096 vite",
@ -46,7 +46,7 @@
"dayjs": "^1.11.6",
"echarts": "^5.4.0",
"el-table-infinite-scroll": "^3.0.1",
"element-plus": "^2.2.26",
"element-plus": "^2.2.27",
"element-resize-detector": "^1.2.4",
"intro.js": "^6.0.0",
"js-cookie": "^3.0.1",
@ -56,7 +56,7 @@
"mockjs": "^1.1.0",
"nprogress": "^0.2.0",
"path": "^0.12.7",
"pinia": "^2.0.27",
"pinia": "^2.0.28",
"qrcode": "^1.5.1",
"qs": "^6.11.0",
"responsive-storage": "^2.1.0",
@ -82,7 +82,7 @@
"@iconify-icons/ep": "^1.2.7",
"@iconify-icons/ri": "^1.2.3",
"@iconify/vue": "^4.0.0",
"@intlify/vite-plugin-vue-i18n": "^6.0.3",
"@intlify/unplugin-vue-i18n": "^0.8.1",
"@pureadmin/theme": "^3.0.0",
"@types/element-resize-detector": "1.1.3",
"@types/intro.js": "^5.1.0",
@ -95,8 +95,8 @@
"@types/sortablejs": "^1.15.0",
"@typescript-eslint/eslint-plugin": "^5.43.0",
"@typescript-eslint/parser": "^5.43.0",
"@vitejs/plugin-vue": "^3.2.0",
"@vitejs/plugin-vue-jsx": "^2.1.1",
"@vitejs/plugin-vue": "^4.0.0",
"@vitejs/plugin-vue-jsx": "^3.0.0",
"@vue/eslint-config-prettier": "^7.0.0",
"@vue/eslint-config-typescript": "^11.0.2",
"autoprefixer": "^10.4.13",
@ -129,7 +129,7 @@
"terser": "^5.15.1",
"typescript": "^4.9.3",
"unplugin-vue-define-options": "^1.0.0",
"vite": "3.1.8",
"vite": "^4.0.3",
"vite-plugin-cdn-import": "^0.3.5",
"vite-plugin-compression": "^0.5.1",
"vite-plugin-mock": "^2.9.6",

673
pnpm-lock.yaml generated
View File

@ -8,7 +8,7 @@ specifiers:
"@iconify-icons/ep": ^1.2.7
"@iconify-icons/ri": ^1.2.3
"@iconify/vue": ^4.0.0
"@intlify/vite-plugin-vue-i18n": ^6.0.3
"@intlify/unplugin-vue-i18n": ^0.8.1
"@logicflow/core": ^1.1.30
"@logicflow/extension": ^1.1.30
"@pureadmin/descriptions": ^1.1.0
@ -26,8 +26,8 @@ specifiers:
"@types/sortablejs": ^1.15.0
"@typescript-eslint/eslint-plugin": ^5.43.0
"@typescript-eslint/parser": ^5.43.0
"@vitejs/plugin-vue": ^3.2.0
"@vitejs/plugin-vue-jsx": ^2.1.1
"@vitejs/plugin-vue": ^4.0.0
"@vitejs/plugin-vue-jsx": ^3.0.0
"@vue/eslint-config-prettier": ^7.0.0
"@vue/eslint-config-typescript": ^11.0.2
"@vueuse/core": ^9.6.0
@ -44,7 +44,7 @@ specifiers:
dayjs: ^1.11.6
echarts: ^5.4.0
el-table-infinite-scroll: ^3.0.1
element-plus: ^2.2.26
element-plus: ^2.2.27
element-resize-detector: ^1.2.4
eslint: ^8.8.0
eslint-plugin-prettier: ^4.0.0
@ -60,7 +60,7 @@ specifiers:
nprogress: ^0.2.0
path: ^0.12.7
picocolors: ^1.0.0
pinia: ^2.0.27
pinia: ^2.0.28
postcss: ^8.4.18
postcss-html: ^1.5.0
postcss-import: ^15.0.0
@ -89,7 +89,7 @@ specifiers:
typescript: ^4.9.3
unplugin-vue-define-options: ^1.0.0
v-contextmenu: 3.0.0
vite: 3.1.8
vite: ^4.0.3
vite-plugin-cdn-import: ^0.3.5
vite-plugin-compression: ^0.5.1
vite-plugin-mock: ^2.9.6
@ -114,8 +114,8 @@ dependencies:
"@howdyjs/mouse-menu": 2.0.5_vue@3.2.45
"@logicflow/core": 1.1.31
"@logicflow/extension": 1.1.31
"@pureadmin/descriptions": 1.1.1_element-plus@2.2.26
"@pureadmin/table": 1.9.0_element-plus@2.2.26
"@pureadmin/descriptions": 1.1.1_element-plus@2.2.27
"@pureadmin/table": 1.9.0_element-plus@2.2.27
"@pureadmin/utils": 1.8.5_echarts@5.4.1+vue@3.2.45
"@vueuse/core": 9.6.0_vue@3.2.45
"@vueuse/motion": 2.0.0-beta.12_vue@3.2.45
@ -128,7 +128,7 @@ dependencies:
dayjs: 1.11.7
echarts: 5.4.1
el-table-infinite-scroll: 3.0.1
element-plus: 2.2.26_vue@3.2.45
element-plus: 2.2.27_vue@3.2.45
element-resize-detector: 1.2.4
intro.js: 6.0.0
js-cookie: 3.0.1
@ -164,7 +164,7 @@ devDependencies:
"@iconify-icons/ep": 1.2.10
"@iconify-icons/ri": 1.2.4
"@iconify/vue": 4.0.2_vue@3.2.45
"@intlify/vite-plugin-vue-i18n": 6.0.3_vite@3.1.8+vue-i18n@9.2.2
"@intlify/unplugin-vue-i18n": 0.8.1_vue-i18n@9.2.2
"@pureadmin/theme": 3.0.0
"@types/element-resize-detector": 1.1.3
"@types/intro.js": 5.1.0
@ -177,8 +177,8 @@ devDependencies:
"@types/sortablejs": 1.15.0
"@typescript-eslint/eslint-plugin": 5.46.1_imrg37k3svwu377c6q7gkarwmi
"@typescript-eslint/parser": 5.46.1_ha6vam6werchizxrnqvarmz2zu
"@vitejs/plugin-vue": 3.2.0_vite@3.1.8+vue@3.2.45
"@vitejs/plugin-vue-jsx": 2.1.1_vite@3.1.8+vue@3.2.45
"@vitejs/plugin-vue": 4.0.0_vite@4.0.3+vue@3.2.45
"@vitejs/plugin-vue-jsx": 3.0.0_vite@4.0.3+vue@3.2.45
"@vue/eslint-config-prettier": 7.0.0_wdw3qg4p7crmsoaizcyntelyni
"@vue/eslint-config-typescript": 11.0.2_4ajq2belonl3hwwudzbg7tkiqi
autoprefixer: 10.4.13_postcss@8.4.20
@ -211,10 +211,10 @@ devDependencies:
terser: 5.16.1
typescript: 4.9.4
unplugin-vue-define-options: 1.0.0
vite: 3.1.8_sass@1.56.2+terser@5.16.1
vite: 4.0.3_6g6dzlvfpurinkjyb4fszcwwoi
vite-plugin-cdn-import: 0.3.5
vite-plugin-compression: 0.5.1_vite@3.1.8
vite-plugin-mock: 2.9.6_mockjs@1.1.0+vite@3.1.8
vite-plugin-compression: 0.5.1_vite@4.0.3
vite-plugin-mock: 2.9.6_mockjs@1.1.0+vite@4.0.3
vite-plugin-remove-console: 1.3.0
vite-svg-loader: 3.6.0
vue-eslint-parser: 9.1.0_eslint@8.29.0
@ -277,7 +277,7 @@ packages:
convert-source-map: 1.9.0
debug: 4.3.4
gensync: 1.0.0-beta.2
json5: 2.2.1
json5: 2.2.2
semver: 6.3.0
transitivePeerDependencies:
- supports-color
@ -859,10 +859,10 @@ packages:
- typescript
dev: true
/@esbuild/android-arm/0.15.18:
/@esbuild/android-arm/0.16.10:
resolution:
{
integrity: sha512-5GT+kcs2WVGjVs7+boataCkO5Fg0y4kCjzkB5bAip7H4jfnOS3dA6KPiww9W1OEKTKeAcUVhdZGvgI65OXmUnw==
integrity: sha512-RmJjQTRrO6VwUWDrzTBLmV4OJZTarYsiepLGlF2rYTVB701hSorPywPGvP6d8HCuuRibyXa5JX4s3jN2kHEtjQ==
}
engines: { node: ">=12" }
cpu: [arm]
@ -871,10 +871,118 @@ packages:
dev: true
optional: true
/@esbuild/linux-loong64/0.15.18:
/@esbuild/android-arm64/0.16.10:
resolution:
{
integrity: sha512-L4jVKS82XVhw2nvzLg/19ClLWg0y27ulRwuP7lcyL6AbUWB5aPglXY3M21mauDQMDfRLs8cQmeT03r/+X3cZYQ==
integrity: sha512-47Y+NwVKTldTlDhSgJHZ/RpvBQMUDG7eKihqaF/u6g7s0ZPz4J1vy8A3rwnnUOF2CuDn7w7Gj/QcMoWz3U3SJw==
}
engines: { node: ">=12" }
cpu: [arm64]
os: [android]
requiresBuild: true
dev: true
optional: true
/@esbuild/android-x64/0.16.10:
resolution:
{
integrity: sha512-C4PfnrBMcuAcOurQzpF1tTtZz94IXO5JmICJJ3NFJRHbXXsQUg9RFG45KvydKqtFfBaFLCHpduUkUfXwIvGnRg==
}
engines: { node: ">=12" }
cpu: [x64]
os: [android]
requiresBuild: true
dev: true
optional: true
/@esbuild/darwin-arm64/0.16.10:
resolution:
{
integrity: sha512-bH/bpFwldyOKdi9HSLCLhhKeVgRYr9KblchwXgY2NeUHBB/BzTUHtUSBgGBmpydB1/4E37m+ggXXfSrnD7/E7g==
}
engines: { node: ">=12" }
cpu: [arm64]
os: [darwin]
requiresBuild: true
dev: true
optional: true
/@esbuild/darwin-x64/0.16.10:
resolution:
{
integrity: sha512-OXt7ijoLuy+AjDSKQWu+KdDFMBbdeaL6wtgMKtDUXKWHiAMKHan5+R1QAG6HD4+K0nnOvEJXKHeA9QhXNAjOTQ==
}
engines: { node: ">=12" }
cpu: [x64]
os: [darwin]
requiresBuild: true
dev: true
optional: true
/@esbuild/freebsd-arm64/0.16.10:
resolution:
{
integrity: sha512-shSQX/3GHuspE3Uxtq5kcFG/zqC+VuMnJkqV7LczO41cIe6CQaXHD3QdMLA4ziRq/m0vZo7JdterlgbmgNIAlQ==
}
engines: { node: ">=12" }
cpu: [arm64]
os: [freebsd]
requiresBuild: true
dev: true
optional: true
/@esbuild/freebsd-x64/0.16.10:
resolution:
{
integrity: sha512-5YVc1zdeaJGASijZmTzSO4h6uKzsQGG3pkjI6fuXvolhm3hVRhZwnHJkforaZLmzvNv5Tb7a3QL2FAVmrgySIA==
}
engines: { node: ">=12" }
cpu: [x64]
os: [freebsd]
requiresBuild: true
dev: true
optional: true
/@esbuild/linux-arm/0.16.10:
resolution:
{
integrity: sha512-c360287ZWI2miBnvIj23bPyVctgzeMT2kQKR+x94pVqIN44h3GF8VMEs1SFPH1UgyDr3yBbx3vowDS1SVhyVhA==
}
engines: { node: ">=12" }
cpu: [arm]
os: [linux]
requiresBuild: true
dev: true
optional: true
/@esbuild/linux-arm64/0.16.10:
resolution:
{
integrity: sha512-2aqeNVxIaRfPcIaMZIFoblLh588sWyCbmj1HHCCs9WmeNWm+EIN0SmvsmPvTa/TsNZFKnxTcvkX2eszTcCqIrA==
}
engines: { node: ">=12" }
cpu: [arm64]
os: [linux]
requiresBuild: true
dev: true
optional: true
/@esbuild/linux-ia32/0.16.10:
resolution:
{
integrity: sha512-sqMIEWeyrLGU7J5RB5fTkLRIFwsgsQ7ieWXlDLEmC2HblPYGb3AucD7inw2OrKFpRPKsec1l+lssiM3+NV5aOw==
}
engines: { node: ">=12" }
cpu: [ia32]
os: [linux]
requiresBuild: true
dev: true
optional: true
/@esbuild/linux-loong64/0.16.10:
resolution:
{
integrity: sha512-O7Pd5hLEtTg37NC73pfhUOGTjx/+aXu5YoSq3ahCxcN7Bcr2F47mv+kG5t840thnsEzrv0oB70+LJu3gUgchvg==
}
engines: { node: ">=12" }
cpu: [loong64]
@ -883,6 +991,138 @@ packages:
dev: true
optional: true
/@esbuild/linux-mips64el/0.16.10:
resolution:
{
integrity: sha512-FN8mZOH7531iPHM0kaFhAOqqNHoAb6r/YHW2ZIxNi0a85UBi2DO4Vuyn7t1p4UN8a4LoAnLOT1PqNgHkgBJgbA==
}
engines: { node: ">=12" }
cpu: [mips64el]
os: [linux]
requiresBuild: true
dev: true
optional: true
/@esbuild/linux-ppc64/0.16.10:
resolution:
{
integrity: sha512-Dg9RiqdvHOAWnOKIOTsIx8dFX9EDlY2IbPEY7YFzchrCiTZmMkD7jWA9UdZbNUygPjdmQBVPRCrLydReFlX9yg==
}
engines: { node: ">=12" }
cpu: [ppc64]
os: [linux]
requiresBuild: true
dev: true
optional: true
/@esbuild/linux-riscv64/0.16.10:
resolution:
{
integrity: sha512-XMqtpjwzbmlar0BJIxmzu/RZ7EWlfVfH68Vadrva0Wj5UKOdKvqskuev2jY2oPV3aoQUyXwnMbMrFmloO2GfAw==
}
engines: { node: ">=12" }
cpu: [riscv64]
os: [linux]
requiresBuild: true
dev: true
optional: true
/@esbuild/linux-s390x/0.16.10:
resolution:
{
integrity: sha512-fu7XtnoeRNFMx8DjK3gPWpFBDM2u5ba+FYwg27SjMJwKvJr4bDyKz5c+FLXLUSSAkMAt/UL+cUbEbra+rYtUgw==
}
engines: { node: ">=12" }
cpu: [s390x]
os: [linux]
requiresBuild: true
dev: true
optional: true
/@esbuild/linux-x64/0.16.10:
resolution:
{
integrity: sha512-61lcjVC/RldNNMUzQQdyCWjCxp9YLEQgIxErxU9XluX7juBdGKb0pvddS0vPNuCvotRbzijZ1pzII+26haWzbA==
}
engines: { node: ">=12" }
cpu: [x64]
os: [linux]
requiresBuild: true
dev: true
optional: true
/@esbuild/netbsd-x64/0.16.10:
resolution:
{
integrity: sha512-JeZXCX3viSA9j4HqSoygjssdqYdfHd6yCFWyfSekLbz4Ef+D2EjvsN02ZQPwYl5a5gg/ehdHgegHhlfOFP0HCA==
}
engines: { node: ">=12" }
cpu: [x64]
os: [netbsd]
requiresBuild: true
dev: true
optional: true
/@esbuild/openbsd-x64/0.16.10:
resolution:
{
integrity: sha512-3qpxQKuEVIIg8SebpXsp82OBrqjPV/OwNWmG+TnZDr3VGyChNnGMHccC1xkbxCHDQNnnXjxhMQNyHmdFJbmbRA==
}
engines: { node: ">=12" }
cpu: [x64]
os: [openbsd]
requiresBuild: true
dev: true
optional: true
/@esbuild/sunos-x64/0.16.10:
resolution:
{
integrity: sha512-z+q0xZ+et/7etz7WoMyXTHZ1rB8PMSNp/FOqURLJLOPb3GWJ2aj4oCqFCjPwEbW1rsT7JPpxeH/DwGAWk/I1Bg==
}
engines: { node: ">=12" }
cpu: [x64]
os: [sunos]
requiresBuild: true
dev: true
optional: true
/@esbuild/win32-arm64/0.16.10:
resolution:
{
integrity: sha512-+YYu5sbQ9npkNT9Dec+tn1F/kjg6SMgr6bfi/6FpXYZvCRfu2YFPZGb+3x8K30s8eRxFpoG4sGhiSUkr1xbHEw==
}
engines: { node: ">=12" }
cpu: [arm64]
os: [win32]
requiresBuild: true
dev: true
optional: true
/@esbuild/win32-ia32/0.16.10:
resolution:
{
integrity: sha512-Aw7Fupk7XNehR1ftHGYwUteyJ2q+em/aE+fVU3YMTBN2V5A7Z4aVCSV+SvCp9HIIHZavPFBpbdP3VfjQpdf6Xg==
}
engines: { node: ">=12" }
cpu: [ia32]
os: [win32]
requiresBuild: true
dev: true
optional: true
/@esbuild/win32-x64/0.16.10:
resolution:
{
integrity: sha512-qddWullt3sC1EIpfHvCRBq3H4g3L86DZpD6n8k2XFjFVyp01D++uNbN1hT/JRsHxTbyyemZcpwL5aRlJwc/zFw==
}
engines: { node: ">=12" }
cpu: [x64]
os: [win32]
requiresBuild: true
dev: true
optional: true
/@eslint/eslintrc/1.3.3:
resolution:
{
@ -1012,8 +1252,8 @@ packages:
vue-i18n:
optional: true
dependencies:
"@intlify/message-compiler": 9.3.0-beta.10
"@intlify/shared": 9.3.0-beta.10
"@intlify/message-compiler": 9.3.0-beta.11
"@intlify/shared": 9.3.0-beta.11
jsonc-eslint-parser: 1.4.1
source-map: 0.6.1
vue-i18n: 9.2.2_vue@3.2.45
@ -1051,14 +1291,14 @@ packages:
"@intlify/shared": 9.2.2
source-map: 0.6.1
/@intlify/message-compiler/9.3.0-beta.10:
/@intlify/message-compiler/9.3.0-beta.11:
resolution:
{
integrity: sha512-RoOC6yceOykLRhN0NlbkNOBUx1el6iphx3W8NfOx3jHVNtfT1FYokx14/5sU3F1F0uxeG4sp6q+ppKvaF8o+ww==
integrity: sha512-gGGfBGzM7JBXp1Q9gbDAy5jELz9ho3ILqnpxp2yp64+gkqohrqc2YXIvCdwZoc6AtKIh/Zmv4sWVqxkvMsBWtQ==
}
engines: { node: ">= 14" }
dependencies:
"@intlify/shared": 9.3.0-beta.10
"@intlify/shared": 9.3.0-beta.11
source-map: 0.6.1
dev: true
@ -1069,39 +1309,44 @@ packages:
}
engines: { node: ">= 14" }
/@intlify/shared/9.3.0-beta.10:
/@intlify/shared/9.3.0-beta.11:
resolution:
{
integrity: sha512-h93uAanbAt/XgjDHclrVB7xix6r7Uz11wx0iGNOCdHP7aA2LCJjUT3uNbekJjjbo+Fl5jzTSJZdm2SexzoqhRA==
integrity: sha512-CtbotesxTRiC3bRyXyv1NG39fkqJ790f8z8xFaeIXSZpOdiyxoh5BIyypCzSFQZDGLwz0Q9gyWbW1XpxQJm68Q==
}
engines: { node: ">= 14" }
dev: true
/@intlify/vite-plugin-vue-i18n/6.0.3_vite@3.1.8+vue-i18n@9.2.2:
/@intlify/unplugin-vue-i18n/0.8.1_vue-i18n@9.2.2:
resolution:
{
integrity: sha512-6SgNzPAOCR90wvt368lKzi7f/5ZEWJn22UCGvhFsP3XvKqlF3cVzojahgQ6o+LTdCkExeM6wPgd+haFf28E9VQ==
integrity: sha512-BhigujPmP6JL1FSxmpogCaL+REozncHCVkJuUnefz4GWBu3X+pRe5O7PeJn8/g+Iml2ieQJz4ISPMmEbuGQjqQ==
}
engines: { node: ">= 14.6" }
engines: { node: ">= 14.16" }
peerDependencies:
petite-vue-i18n: "*"
vite: ^2.9.0 || ^3.0.0
vue-i18n: "*"
vue-i18n-bridge: "*"
peerDependenciesMeta:
petite-vue-i18n:
optional: true
vite:
optional: true
vue-i18n:
optional: true
vue-i18n-bridge:
optional: true
dependencies:
"@intlify/bundle-utils": 3.4.0_vue-i18n@9.2.2
"@intlify/shared": 9.3.0-beta.10
"@intlify/shared": 9.3.0-beta.11
"@rollup/pluginutils": 4.2.1
"@vue/compiler-sfc": 3.2.45
debug: 4.3.4
fast-glob: 3.2.12
js-yaml: 4.1.0
json5: 2.2.2
pathe: 1.0.0
picocolors: 1.0.0
source-map: 0.6.1
vite: 3.1.8_sass@1.56.2+terser@5.16.1
unplugin: 1.0.1
vue-i18n: 9.2.2_vue@3.2.45
transitivePeerDependencies:
- supports-color
@ -1235,7 +1480,7 @@ packages:
fastq: 1.14.0
dev: true
/@pureadmin/descriptions/1.1.1_element-plus@2.2.26:
/@pureadmin/descriptions/1.1.1_element-plus@2.2.27:
resolution:
{
integrity: sha512-4BHLKomLU/LxGs5EUA+h+aKNrJEkhrU6+QE8VoWfJZ8VTU6ddvFLT/Pi4WuO5CWNXM9ZjqvHLFFVwEPlKntqtg==
@ -1244,11 +1489,11 @@ packages:
element-plus: ^2.0.0
dependencies:
"@element-plus/icons-vue": 2.0.10_vue@3.2.45
element-plus: 2.2.26_vue@3.2.45
element-plus: 2.2.27_vue@3.2.45
vue: 3.2.45
dev: false
/@pureadmin/table/1.9.0_element-plus@2.2.26:
/@pureadmin/table/1.9.0_element-plus@2.2.27:
resolution:
{
integrity: sha512-3cGbQc5QV0E7i1h0QZJWVuwJKXn1Kk2Ae6T/Z/pxEVRbwE0L+vixI/x9WO31/yZEL7qNz2lD+OIOtUU+HjTbYA==
@ -1256,7 +1501,7 @@ packages:
peerDependencies:
element-plus: ^2.0.0
dependencies:
element-plus: 2.2.26_vue@3.2.45
element-plus: 2.2.27_vue@3.2.45
vue: 3.2.45
dev: false
@ -1742,36 +1987,36 @@ packages:
nanoid: 3.3.4
dev: false
/@vitejs/plugin-vue-jsx/2.1.1_vite@3.1.8+vue@3.2.45:
/@vitejs/plugin-vue-jsx/3.0.0_vite@4.0.3+vue@3.2.45:
resolution:
{
integrity: sha512-JgDhxstQlwnHBvZ1BSnU5mbmyQ14/t5JhREc6YH5kWyu2QdAAOsLF6xgHoIWarj8tddaiwFrNzLbWJPudpXKYA==
integrity: sha512-vurkuzgac5SYuxd2HUZqAFAWGTF10diKBwJNbCvnWijNZfXd+7jMtqjPFbGt7idOJUn584fP1Ar9j/GN2jQ3Ew==
}
engines: { node: ^14.18.0 || >=16.0.0 }
peerDependencies:
vite: ^3.0.0
vite: ^4.0.0
vue: ^3.0.0
dependencies:
"@babel/core": 7.20.5
"@babel/plugin-transform-typescript": 7.20.2_@babel+core@7.20.5
"@vue/babel-plugin-jsx": 1.1.1_@babel+core@7.20.5
vite: 3.1.8_sass@1.56.2+terser@5.16.1
vite: 4.0.3_6g6dzlvfpurinkjyb4fszcwwoi
vue: 3.2.45
transitivePeerDependencies:
- supports-color
dev: true
/@vitejs/plugin-vue/3.2.0_vite@3.1.8+vue@3.2.45:
/@vitejs/plugin-vue/4.0.0_vite@4.0.3+vue@3.2.45:
resolution:
{
integrity: sha512-E0tnaL4fr+qkdCNxJ+Xd0yM31UwMkQje76fsDVBBUCoGOUPexu2VDUYHL8P4CwV+zMvWw6nlRw19OnRKmYAJpw==
integrity: sha512-e0X4jErIxAB5oLtDqbHvHpJe/uWNkdpYV83AOG2xo2tEVSzCzewgJMtREZM30wXnM5ls90hxiOtAuVU6H5JgbA==
}
engines: { node: ^14.18.0 || >=16.0.0 }
peerDependencies:
vite: ^3.0.0
vite: ^4.0.0
vue: ^3.2.25
dependencies:
vite: 3.1.8_sass@1.56.2+terser@5.16.1
vite: 4.0.3_6g6dzlvfpurinkjyb4fszcwwoi
vue: 3.2.45
dev: true
@ -3738,7 +3983,7 @@ packages:
}
dependencies:
core-js: 3.26.1
element-plus: 2.2.26_vue@3.2.45
element-plus: 2.2.27_vue@3.2.45
vue: 3.2.45
transitivePeerDependencies:
- "@vue/composition-api"
@ -3751,10 +3996,10 @@ packages:
}
dev: true
/element-plus/2.2.26_vue@3.2.45:
/element-plus/2.2.27_vue@3.2.45:
resolution:
{
integrity: sha512-O/rdY5m9DkclpVg8r3GynyqCunm7MxSR142xSsjrZA77bi7bcwA3SIy6SPEDqHi5R4KqgkGYgKSp4Q4e3irbYg==
integrity: sha512-P04HDOZBYDdvlYuleuCZRULzAc5xJVOBfLDK9xWxVo0vyo8ntdaXS5sTU+/76vrNzuO3FhLn9kvrsbiJEVa1jg==
}
peerDependencies:
vue: ^3.2.0
@ -3886,246 +4131,6 @@ packages:
ext: 1.7.0
dev: false
/esbuild-android-64/0.15.18:
resolution:
{
integrity: sha512-wnpt3OXRhcjfIDSZu9bnzT4/TNTDsOUvip0foZOUBG7QbSt//w3QV4FInVJxNhKc/ErhUxc5z4QjHtMi7/TbgA==
}
engines: { node: ">=12" }
cpu: [x64]
os: [android]
requiresBuild: true
dev: true
optional: true
/esbuild-android-arm64/0.15.18:
resolution:
{
integrity: sha512-G4xu89B8FCzav9XU8EjsXacCKSG2FT7wW9J6hOc18soEHJdtWu03L3TQDGf0geNxfLTtxENKBzMSq9LlbjS8OQ==
}
engines: { node: ">=12" }
cpu: [arm64]
os: [android]
requiresBuild: true
dev: true
optional: true
/esbuild-darwin-64/0.15.18:
resolution:
{
integrity: sha512-2WAvs95uPnVJPuYKP0Eqx+Dl/jaYseZEUUT1sjg97TJa4oBtbAKnPnl3b5M9l51/nbx7+QAEtuummJZW0sBEmg==
}
engines: { node: ">=12" }
cpu: [x64]
os: [darwin]
requiresBuild: true
dev: true
optional: true
/esbuild-darwin-arm64/0.15.18:
resolution:
{
integrity: sha512-tKPSxcTJ5OmNb1btVikATJ8NftlyNlc8BVNtyT/UAr62JFOhwHlnoPrhYWz09akBLHI9nElFVfWSTSRsrZiDUA==
}
engines: { node: ">=12" }
cpu: [arm64]
os: [darwin]
requiresBuild: true
dev: true
optional: true
/esbuild-freebsd-64/0.15.18:
resolution:
{
integrity: sha512-TT3uBUxkteAjR1QbsmvSsjpKjOX6UkCstr8nMr+q7zi3NuZ1oIpa8U41Y8I8dJH2fJgdC3Dj3CXO5biLQpfdZA==
}
engines: { node: ">=12" }
cpu: [x64]
os: [freebsd]
requiresBuild: true
dev: true
optional: true
/esbuild-freebsd-arm64/0.15.18:
resolution:
{
integrity: sha512-R/oVr+X3Tkh+S0+tL41wRMbdWtpWB8hEAMsOXDumSSa6qJR89U0S/PpLXrGF7Wk/JykfpWNokERUpCeHDl47wA==
}
engines: { node: ">=12" }
cpu: [arm64]
os: [freebsd]
requiresBuild: true
dev: true
optional: true
/esbuild-linux-32/0.15.18:
resolution:
{
integrity: sha512-lphF3HiCSYtaa9p1DtXndiQEeQDKPl9eN/XNoBf2amEghugNuqXNZA/ZovthNE2aa4EN43WroO0B85xVSjYkbg==
}
engines: { node: ">=12" }
cpu: [ia32]
os: [linux]
requiresBuild: true
dev: true
optional: true
/esbuild-linux-64/0.15.18:
resolution:
{
integrity: sha512-hNSeP97IviD7oxLKFuii5sDPJ+QHeiFTFLoLm7NZQligur8poNOWGIgpQ7Qf8Balb69hptMZzyOBIPtY09GZYw==
}
engines: { node: ">=12" }
cpu: [x64]
os: [linux]
requiresBuild: true
dev: true
optional: true
/esbuild-linux-arm/0.15.18:
resolution:
{
integrity: sha512-UH779gstRblS4aoS2qpMl3wjg7U0j+ygu3GjIeTonCcN79ZvpPee12Qun3vcdxX+37O5LFxz39XeW2I9bybMVA==
}
engines: { node: ">=12" }
cpu: [arm]
os: [linux]
requiresBuild: true
dev: true
optional: true
/esbuild-linux-arm64/0.15.18:
resolution:
{
integrity: sha512-54qr8kg/6ilcxd+0V3h9rjT4qmjc0CccMVWrjOEM/pEcUzt8X62HfBSeZfT2ECpM7104mk4yfQXkosY8Quptug==
}
engines: { node: ">=12" }
cpu: [arm64]
os: [linux]
requiresBuild: true
dev: true
optional: true
/esbuild-linux-mips64le/0.15.18:
resolution:
{
integrity: sha512-Mk6Ppwzzz3YbMl/ZZL2P0q1tnYqh/trYZ1VfNP47C31yT0K8t9s7Z077QrDA/guU60tGNp2GOwCQnp+DYv7bxQ==
}
engines: { node: ">=12" }
cpu: [mips64el]
os: [linux]
requiresBuild: true
dev: true
optional: true
/esbuild-linux-ppc64le/0.15.18:
resolution:
{
integrity: sha512-b0XkN4pL9WUulPTa/VKHx2wLCgvIAbgwABGnKMY19WhKZPT+8BxhZdqz6EgkqCLld7X5qiCY2F/bfpUUlnFZ9w==
}
engines: { node: ">=12" }
cpu: [ppc64]
os: [linux]
requiresBuild: true
dev: true
optional: true
/esbuild-linux-riscv64/0.15.18:
resolution:
{
integrity: sha512-ba2COaoF5wL6VLZWn04k+ACZjZ6NYniMSQStodFKH/Pu6RxzQqzsmjR1t9QC89VYJxBeyVPTaHuBMCejl3O/xg==
}
engines: { node: ">=12" }
cpu: [riscv64]
os: [linux]
requiresBuild: true
dev: true
optional: true
/esbuild-linux-s390x/0.15.18:
resolution:
{
integrity: sha512-VbpGuXEl5FCs1wDVp93O8UIzl3ZrglgnSQ+Hu79g7hZu6te6/YHgVJxCM2SqfIila0J3k0csfnf8VD2W7u2kzQ==
}
engines: { node: ">=12" }
cpu: [s390x]
os: [linux]
requiresBuild: true
dev: true
optional: true
/esbuild-netbsd-64/0.15.18:
resolution:
{
integrity: sha512-98ukeCdvdX7wr1vUYQzKo4kQ0N2p27H7I11maINv73fVEXt2kyh4K4m9f35U1K43Xc2QGXlzAw0K9yoU7JUjOg==
}
engines: { node: ">=12" }
cpu: [x64]
os: [netbsd]
requiresBuild: true
dev: true
optional: true
/esbuild-openbsd-64/0.15.18:
resolution:
{
integrity: sha512-yK5NCcH31Uae076AyQAXeJzt/vxIo9+omZRKj1pauhk3ITuADzuOx5N2fdHrAKPxN+zH3w96uFKlY7yIn490xQ==
}
engines: { node: ">=12" }
cpu: [x64]
os: [openbsd]
requiresBuild: true
dev: true
optional: true
/esbuild-sunos-64/0.15.18:
resolution:
{
integrity: sha512-On22LLFlBeLNj/YF3FT+cXcyKPEI263nflYlAhz5crxtp3yRG1Ugfr7ITyxmCmjm4vbN/dGrb/B7w7U8yJR9yw==
}
engines: { node: ">=12" }
cpu: [x64]
os: [sunos]
requiresBuild: true
dev: true
optional: true
/esbuild-windows-32/0.15.18:
resolution:
{
integrity: sha512-o+eyLu2MjVny/nt+E0uPnBxYuJHBvho8vWsC2lV61A7wwTWC3jkN2w36jtA+yv1UgYkHRihPuQsL23hsCYGcOQ==
}
engines: { node: ">=12" }
cpu: [ia32]
os: [win32]
requiresBuild: true
dev: true
optional: true
/esbuild-windows-64/0.15.18:
resolution:
{
integrity: sha512-qinug1iTTaIIrCorAUjR0fcBk24fjzEedFYhhispP8Oc7SFvs+XeW3YpAKiKp8dRpizl4YYAhxMjlftAMJiaUw==
}
engines: { node: ">=12" }
cpu: [x64]
os: [win32]
requiresBuild: true
dev: true
optional: true
/esbuild-windows-arm64/0.15.18:
resolution:
{
integrity: sha512-q9bsYzegpZcLziq0zgUi5KqGVtfhjxGbnksaBFYmWLxeV/S1fK4OLdq2DFYnXcLMjlZw2L0jLsk1eGoB522WXQ==
}
engines: { node: ">=12" }
cpu: [arm64]
os: [win32]
requiresBuild: true
dev: true
optional: true
/esbuild/0.11.3:
resolution:
{
@ -4135,37 +4140,37 @@ packages:
requiresBuild: true
dev: true
/esbuild/0.15.18:
/esbuild/0.16.10:
resolution:
{
integrity: sha512-x/R72SmW3sSFRm5zrrIjAhCeQSAWoni3CmHEqfQrZIQTM3lVCdehdwuIqaOtfC2slvpdlLa62GYoN8SxT23m6Q==
integrity: sha512-z5dIViHoVnw2l+NCJ3zj5behdXjYvXne9gL18OOivCadXDUhyDkeSvEtLcGVAJW2fNmh33TDUpsi704XYlDodw==
}
engines: { node: ">=12" }
hasBin: true
requiresBuild: true
optionalDependencies:
"@esbuild/android-arm": 0.15.18
"@esbuild/linux-loong64": 0.15.18
esbuild-android-64: 0.15.18
esbuild-android-arm64: 0.15.18
esbuild-darwin-64: 0.15.18
esbuild-darwin-arm64: 0.15.18
esbuild-freebsd-64: 0.15.18
esbuild-freebsd-arm64: 0.15.18
esbuild-linux-32: 0.15.18
esbuild-linux-64: 0.15.18
esbuild-linux-arm: 0.15.18
esbuild-linux-arm64: 0.15.18
esbuild-linux-mips64le: 0.15.18
esbuild-linux-ppc64le: 0.15.18
esbuild-linux-riscv64: 0.15.18
esbuild-linux-s390x: 0.15.18
esbuild-netbsd-64: 0.15.18
esbuild-openbsd-64: 0.15.18
esbuild-sunos-64: 0.15.18
esbuild-windows-32: 0.15.18
esbuild-windows-64: 0.15.18
esbuild-windows-arm64: 0.15.18
"@esbuild/android-arm": 0.16.10
"@esbuild/android-arm64": 0.16.10
"@esbuild/android-x64": 0.16.10
"@esbuild/darwin-arm64": 0.16.10
"@esbuild/darwin-x64": 0.16.10
"@esbuild/freebsd-arm64": 0.16.10
"@esbuild/freebsd-x64": 0.16.10
"@esbuild/linux-arm": 0.16.10
"@esbuild/linux-arm64": 0.16.10
"@esbuild/linux-ia32": 0.16.10
"@esbuild/linux-loong64": 0.16.10
"@esbuild/linux-mips64el": 0.16.10
"@esbuild/linux-ppc64": 0.16.10
"@esbuild/linux-riscv64": 0.16.10
"@esbuild/linux-s390x": 0.16.10
"@esbuild/linux-x64": 0.16.10
"@esbuild/netbsd-x64": 0.16.10
"@esbuild/openbsd-x64": 0.16.10
"@esbuild/sunos-x64": 0.16.10
"@esbuild/win32-arm64": 0.16.10
"@esbuild/win32-ia32": 0.16.10
"@esbuild/win32-x64": 0.16.10
dev: true
/escalade/3.1.1:
@ -5506,10 +5511,10 @@ packages:
}
dev: true
/json5/2.2.1:
/json5/2.2.2:
resolution:
{
integrity: sha512-1hqLFMSrGHRHxav9q9gNjJ5EXznIxGVO09xQRrwplcS8qs28pZ8s8hupZAmqDwZUmVZ2Qb2jnyPOWcDH8m8dlA==
integrity: sha512-46Tk9JiOL2z7ytNQWFLpj99RZkVgeHf87yGQKsIkaPz1qSH9UczKH1rO7K3wgRselo0tYMUNfecYpm/p1vC7tQ==
}
engines: { node: ">=6" }
hasBin: true
@ -6468,6 +6473,13 @@ packages:
util: 0.10.4
dev: false
/pathe/1.0.0:
resolution:
{
integrity: sha512-nPdMG0Pd09HuSsr7QOKUXO2Jr9eqaDiZvDwdyIhNG5SHYujkQHYKDfGQkulBxvbDHz8oHLsTgKN86LSwYzSHAg==
}
dev: true
/picocolors/1.0.0:
resolution:
{
@ -7439,12 +7451,12 @@ packages:
yargs: 17.6.2
dev: true
/rollup/2.78.1:
/rollup/3.8.1:
resolution:
{
integrity: sha512-VeeCgtGi4P+o9hIg+xz4qQpRl6R401LWEXBmxYKOV4zlF82lyhgh2hTZnheFUbANE8l2A41F458iwj2vEYaXJg==
integrity: sha512-4yh9eMW7byOroYcN8DlF9P/2jCpu6txVIHjEqquQVSx7DI0RgyCCN3tjrcy4ra6yVtV336aLBB3v2AarYAxePQ==
}
engines: { node: ">=10.0.0" }
engines: { node: ">=14.18.0", npm: ">=8.0.0" }
hasBin: true
optionalDependencies:
fsevents: 2.3.2
@ -8577,7 +8589,7 @@ packages:
- rollup
dev: true
/vite-plugin-compression/0.5.1_vite@3.1.8:
/vite-plugin-compression/0.5.1_vite@4.0.3:
resolution:
{
integrity: sha512-5QJKBDc+gNYVqL/skgFAP81Yuzo9R+EAf19d+EtsMF/i8kFUpNi3J/H01QD3Oo8zBQn+NzoCIFkpPLynoOzaJg==
@ -8588,12 +8600,12 @@ packages:
chalk: 4.1.2
debug: 4.3.4
fs-extra: 10.1.0
vite: 3.1.8_sass@1.56.2+terser@5.16.1
vite: 4.0.3_6g6dzlvfpurinkjyb4fszcwwoi
transitivePeerDependencies:
- supports-color
dev: true
/vite-plugin-mock/2.9.6_mockjs@1.1.0+vite@3.1.8:
/vite-plugin-mock/2.9.6_mockjs@1.1.0+vite@4.0.3:
resolution:
{
integrity: sha512-/Rm59oPppe/ncbkSrUuAxIQihlI2YcBmnbR4ST1RA2VzM1C0tEQc1KlbQvnUGhXECAGTaQN2JyasiwXP6EtKgg==
@ -8613,7 +8625,7 @@ packages:
fast-glob: 3.2.12
mockjs: 1.1.0
path-to-regexp: 6.2.1
vite: 3.1.8_sass@1.56.2+terser@5.16.1
vite: 4.0.3_6g6dzlvfpurinkjyb4fszcwwoi
transitivePeerDependencies:
- rollup
- supports-color
@ -8636,32 +8648,39 @@ packages:
svgo: 2.8.0
dev: true
/vite/3.1.8_sass@1.56.2+terser@5.16.1:
/vite/4.0.3_6g6dzlvfpurinkjyb4fszcwwoi:
resolution:
{
integrity: sha512-m7jJe3nufUbuOfotkntGFupinL/fmuTNuQmiVE7cH2IZMuf4UbfbGYMUT3jVWgGYuRVLY9j8NnrRqgw5rr5QTg==
integrity: sha512-HvuNv1RdE7deIfQb8mPk51UKjqptO/4RXZ5yXSAvurd5xOckwS/gg8h9Tky3uSbnjYTgUm0hVCet1cyhKd73ZA==
}
engines: { node: ^14.18.0 || >=16.0.0 }
hasBin: true
peerDependencies:
"@types/node": ">= 14"
less: "*"
sass: "*"
stylus: "*"
sugarss: "*"
terser: ^5.4.0
peerDependenciesMeta:
"@types/node":
optional: true
less:
optional: true
sass:
optional: true
stylus:
optional: true
sugarss:
optional: true
terser:
optional: true
dependencies:
esbuild: 0.15.18
"@types/node": 18.11.15
esbuild: 0.16.10
postcss: 8.4.20
resolve: 1.22.1
rollup: 2.78.1
rollup: 3.8.1
sass: 1.56.2
terser: 5.16.1
optionalDependencies:

View File

@ -1,5 +1,5 @@
{
"Version": "3.9.5",
"Version": "3.9.6",
"Title": "PureAdmin",
"FixedHeader": true,
"HiddenSideBar": false,
@ -17,7 +17,7 @@
"ShowLogo": true,
"ShowModel": "smart",
"MenuArrowIconNoTransition": true,
"CachingAsyncRoutes": true,
"CachingAsyncRoutes": false,
"TooltipEffect": "light",
"MapConfigure": {
"amapKey": "97b3248d1553172e81f168cf94ea667e",

File diff suppressed because one or more lines are too long

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 40 KiB

View File

@ -1,9 +1,8 @@
import { App } from "vue";
import axios from "axios";
import { loadEnv } from "@build/index";
let config: object = {};
const { VITE_PUBLIC_PATH } = loadEnv();
const { VITE_PUBLIC_PATH } = import.meta.env;
const setConfig = (cfg?: unknown) => {
config = Object.assign(config, cfg);

View File

@ -70,14 +70,8 @@ notices.value.map(v => (noticesNum.value += v.list.length));
height: 1px;
}
// notices 3
:deep(.el-tabs__nav-wrap) {
padding: 0 36px 0 36px;
}
// notices 3
:deep(.el-tabs__active-bar) {
margin: 0 36px 0 36px;
}
}
</style>

View File

@ -144,7 +144,8 @@ function resolvePath(routePath) {
if (httpReg.test(routePath) || httpReg.test(props.basePath)) {
return routePath || props.basePath;
} else {
return path.resolve(props.basePath, routePath);
// 使path.posix.resolvepath.resolve windows使electron
return path.posix.resolve(props.basePath, routePath);
}
}
</script>

View File

@ -16,6 +16,8 @@ import PureDescriptions from "@pureadmin/descriptions";
import "./style/reset.scss";
// 导入公共样式
import "./style/index.scss";
// 一定要在main.ts中导入tailwind.css防止vite每次hmr都会请求src/style/index.scss整体css文件导致热更新慢的问题
import "./style/tailwind.css";
import "element-plus/dist/index.css";
// 导入字体图标
import "./assets/iconfont/iconfont.js";

View File

@ -8,7 +8,6 @@ import {
} from "vue-router";
import { router } from "./index";
import { isProxy, toRaw } from "vue";
import { loadEnv } from "../../build";
import { useTimeoutFn } from "@vueuse/core";
import { RouteConfigs } from "@/layout/types";
import {
@ -324,7 +323,7 @@ function addAsyncRoutes(arrRoutes: Array<RouteRecordRaw>) {
/** 获取路由历史模式 https://next.router.vuejs.org/zh/guide/essentials/history-mode.html */
function getHistoryMode(): RouterHistory {
const routerHistory = loadEnv().VITE_ROUTER_HISTORY;
const routerHistory = import.meta.env.VITE_ROUTER_HISTORY;
// len为1 代表只有历史模式 为2 代表历史模式中存在base参数 https://next.router.vuejs.org/zh/api/#%E5%8F%82%E6%95%B0-1
const historyMode = routerHistory.split(",");
const leftMode = historyMode[0];

View File

@ -3,7 +3,6 @@
@import "./element-plus.scss";
@import "./sidebar.scss";
@import "./dark.scss";
@import "./tailwind.css";
/* 自定义全局 CssVar */
:root {

View File

@ -1,12 +1,11 @@
<script setup lang="ts">
import { ref } from "vue";
import { loadEnv } from "@build/index";
defineOptions({
name: "Button"
});
const { VITE_PUBLIC_PATH } = loadEnv();
const { VITE_PUBLIC_PATH } = import.meta.env;
const url = ref(`${VITE_PUBLIC_PATH}html/button.html`);
</script>

View File

@ -1,5 +1,6 @@
<script setup lang="ts">
import { initRouter } from "@/router/utils";
import { storageSession } from "@pureadmin/utils";
import { type CSSProperties, ref, computed } from "vue";
import { useUserStoreHook } from "@/store/modules/user";
import { usePermissionStoreHook } from "@/store/modules/permission";
@ -33,7 +34,7 @@ function onChange() {
.loginByUsername({ username: username.value, password: "admin123" })
.then(res => {
if (res.success) {
sessionStorage.removeItem("async-routes");
storageSession().removeItem("async-routes");
usePermissionStoreHook().clearAllCachePage();
initRouter();
}