Przeglądaj źródła

添加纯净版配置

icssoa 7 miesięcy temu
rodzic
commit
1ddfec2bd3
4 zmienionych plików z 12 dodań i 10 usunięć
  1. 4 3
      App.uvue
  2. 1 1
      package.json
  3. 5 5
      pnpm-lock.yaml
  4. 2 1
      vite.config.ts

+ 4 - 3
App.uvue

@@ -14,13 +14,14 @@ export default {
 	onShow: function () {
 		console.log("App Show");
 
-		const { dict, user } = useStore();
+		// 根据业务情况判断是否要预先调用
+		// const { dict, user } = useStore();
 
 		// 获取用户信息,未登录不执行
-		user.get();
+		// user.get();
 
 		// 刷新字典数据
-		dict.refresh(null);
+		// dict.refresh(null);
 	},
 	onHide: function () {
 		console.log("App Hide");

+ 1 - 1
package.json

@@ -14,7 +14,7 @@
 		"@babel/parser": "^7.27.5",
 		"@babel/types": "^7.27.6",
 		"@cool-vue/ai": "^1.1.5",
-		"@cool-vue/vite-plugin": "^8.2.5",
+		"@cool-vue/vite-plugin": "^8.2.6",
 		"@dcloudio/types": "^3.4.16",
 		"@types/node": "^24.0.15",
 		"@vue/compiler-sfc": "^3.5.16",

+ 5 - 5
pnpm-lock.yaml

@@ -25,8 +25,8 @@ importers:
         specifier: ^1.1.5
         version: 1.1.5
       '@cool-vue/vite-plugin':
-        specifier: ^8.2.5
-        version: 8.2.5
+        specifier: ^8.2.6
+        version: 8.2.6
       '@dcloudio/types':
         specifier: ^3.4.16
         version: 3.4.16
@@ -85,8 +85,8 @@ packages:
     resolution: {integrity: sha512-H3A9uml1uiux+g9UPcZT119W3WepvxTx5hs38chwnaj3/zBEF0J2pDI0HNq5FShoHZLQ6+Rq+R7Se0X+CmNU5Q==}
     hasBin: true
 
-  '@cool-vue/vite-plugin@8.2.5':
-    resolution: {integrity: sha512-K6HSQTu43G/VjgsUTaPJd/i8mctq961RhMtxGOIWqtxjbTwm1lPjfwn1cTZmOZtcpPvVpfLYJP9fFJ7kvIDRug==}
+  '@cool-vue/vite-plugin@8.2.6':
+    resolution: {integrity: sha512-Ey1qIMoHZOZdl/PxZ7qSa5A8hah0IlMVoyxPH7PQk6tAB1PNJiUfTkrPFi9vohFEeuj3WMZ5NhlRh+UIC3ZRXw==}
 
   '@dcloudio/types@3.4.16':
     resolution: {integrity: sha512-gJIr1OWtePTDDdjtp8Kh72S/ZGLunoSfHiUvRtXhBmAFNkDWuAKFO90hv62k3GYN/st04xUBQNtBfvhu/YHjww==}
@@ -1370,7 +1370,7 @@ snapshots:
     transitivePeerDependencies:
       - debug
 
-  '@cool-vue/vite-plugin@8.2.5':
+  '@cool-vue/vite-plugin@8.2.6':
     dependencies:
       '@vue/compiler-sfc': 3.5.17
       axios: 1.10.0

+ 2 - 1
vite.config.ts

@@ -22,7 +22,8 @@ export default defineConfig({
 			},
 			eps: {
 				dist: ".cool"
-			}
+			},
+			clean: true // 是否纯净版
 		})
 	],