create-vue3-enterprise 1.0.33 → 1.0.35
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.
- package/dist/index.js +6 -9
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -163,22 +163,19 @@ async function main() {
|
|
|
163
163
|
title: "Vue3 + TypeScript + Vite + Pinia + Vue Router",
|
|
164
164
|
value: "vue3-ts-full"
|
|
165
165
|
}
|
|
166
|
-
]
|
|
166
|
+
],
|
|
167
|
+
onState: (state) => {
|
|
168
|
+
selectedTemplate = state.value;
|
|
169
|
+
}
|
|
167
170
|
},
|
|
168
171
|
{
|
|
169
|
-
type: () =>
|
|
170
|
-
console.log(yellow(`\n[调试] needsRouter 阶段 模板值 = ${selectedTemplate}`));
|
|
171
|
-
return ["vue3-ts", "vue3-ts-pinia"].includes(selectedTemplate) ? "confirm" : null;
|
|
172
|
-
},
|
|
172
|
+
type: () => (selectedTemplate !== "vue3-ts-full" ? "confirm" : null),
|
|
173
173
|
name: "needsRouter",
|
|
174
174
|
message: "添加 Vue Router?",
|
|
175
175
|
initial: true
|
|
176
176
|
},
|
|
177
177
|
{
|
|
178
|
-
type: () =>
|
|
179
|
-
console.log(yellow(`\n[调试] needsPinia 阶段 模板值 = ${selectedTemplate}`));
|
|
180
|
-
return selectedTemplate === "vue3-ts" ? "confirm" : null;
|
|
181
|
-
},
|
|
178
|
+
type: () => (selectedTemplate === "vue3-ts" ? "confirm" : null),
|
|
182
179
|
name: "needsPinia",
|
|
183
180
|
message: "添加 Pinia (状态管理)?",
|
|
184
181
|
initial: true
|