@4399ywkf/cli 2.0.12 → 2.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -48,7 +48,14 @@ export default defineConfig({
|
|
|
48
48
|
// },
|
|
49
49
|
|
|
50
50
|
plugins: [
|
|
51
|
-
reactQueryPlugin(
|
|
51
|
+
reactQueryPlugin({
|
|
52
|
+
// staleTime: 5 * 60 * 1000, // 缓存过期时间(默认 5 分钟)
|
|
53
|
+
// gcTime: 10 * 60 * 1000, // GC 回收周期(默认 10 分钟)
|
|
54
|
+
// retry: 1, // 失败重试次数(默认 1)
|
|
55
|
+
// devtools: true, // React Query DevTools(仅开发模式)
|
|
56
|
+
// baseURL: "/api", // axios 默认 baseURL
|
|
57
|
+
// timeout: 15000, // 请求超时(默认 15 秒)
|
|
58
|
+
}),
|
|
52
59
|
zustandPlugin(),
|
|
53
60
|
tailwindPlugin(),
|
|
54
61
|
{{#isSubApp}}
|
|
@@ -65,7 +72,7 @@ export default defineConfig({
|
|
|
65
72
|
master: true,
|
|
66
73
|
apps: [
|
|
67
74
|
// 在此注册子应用
|
|
68
|
-
// { name: "sub-app", entry: "http://localhost:3001", activeRule: "/sub" },
|
|
75
|
+
// { name: "sub-app", entry: "http://localhost:3001", activeRule: "/micro/sub-app" },
|
|
69
76
|
],
|
|
70
77
|
}),
|
|
71
78
|
{{/isMasterApp}}
|