diff --git a/.npmrc b/.npmrc index 26ca3ca8d..ae71d48e8 100644 --- a/.npmrc +++ b/.npmrc @@ -1,4 +1,5 @@ registry = "https://registry.npmmirror.com" +ELECTRON_MIRROR="https://npmmirror.com/mirrors/electron/" public-hoist-pattern[]=lefthook ELECTRON_MIRROR="https://npmmirror.com/mirrors/electron/" public-hoist-pattern[]=husky diff --git a/playground/.env b/playground/.env index 4717250c9..b77ea762b 100644 --- a/playground/.env +++ b/playground/.env @@ -4,6 +4,9 @@ VITE_APP_TITLE=Vben Admin # 应用命名空间,用于缓存、store等功能的前缀,确保隔离 VITE_APP_NAMESPACE=vben-web-play +# vue-router 的模式 +VITE_ROUTER_HISTORY=hash + # 对store进行加密的密钥,在将store持久化到localStorage时会使用该密钥进行加密 VITE_APP_STORE_SECURE_KEY=please-replace-me-with-your-own-key diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 00c384ef6..2342f6c10 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -87,6 +87,8 @@ catalog: depcheck: ^1.4.7 dotenv: ^16.5.0 echarts: ^5.6.0 + electron: ^35.0.3 + electron-builder: ^25.1.8 element-plus: ^2.9.9 eslint: ^9.26.0 eslint-config-turbo: ^2.5.2 @@ -169,6 +171,8 @@ catalog: vee-validate: ^4.15.0 vite: ^6.3.4 vite-plugin-compression: ^0.5.1 + vite-plugin-electron: ^0.29.0 + vite-plugin-electron-renderer: ^0.14.6 vite-plugin-dts: ^4.5.3 vite-plugin-html: ^3.2.2 vite-plugin-lazy-import: ^1.0.7