create-vue3-enterprise 1.0.34 → 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 +2 -11
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -166,25 +166,16 @@ async function main() {
|
|
|
166
166
|
],
|
|
167
167
|
onState: (state) => {
|
|
168
168
|
selectedTemplate = state.value;
|
|
169
|
-
if (selectedTemplate) {
|
|
170
|
-
console.log(green(`✔ 你选择的模板值: ${selectedTemplate}`));
|
|
171
|
-
}
|
|
172
169
|
}
|
|
173
170
|
},
|
|
174
171
|
{
|
|
175
|
-
type: () =>
|
|
176
|
-
console.log(yellow(`\n[调试] needsRouter 阶段 模板值 = ${selectedTemplate}`));
|
|
177
|
-
return ["vue3-ts", "vue3-ts-pinia"].includes(selectedTemplate) ? "confirm" : null;
|
|
178
|
-
},
|
|
172
|
+
type: () => (selectedTemplate !== "vue3-ts-full" ? "confirm" : null),
|
|
179
173
|
name: "needsRouter",
|
|
180
174
|
message: "添加 Vue Router?",
|
|
181
175
|
initial: true
|
|
182
176
|
},
|
|
183
177
|
{
|
|
184
|
-
type: () =>
|
|
185
|
-
console.log(yellow(`\n[调试] needsPinia 阶段 模板值 = ${selectedTemplate}`));
|
|
186
|
-
return selectedTemplate === "vue3-ts" ? "confirm" : null;
|
|
187
|
-
},
|
|
178
|
+
type: () => (selectedTemplate === "vue3-ts" ? "confirm" : null),
|
|
188
179
|
name: "needsPinia",
|
|
189
180
|
message: "添加 Pinia (状态管理)?",
|
|
190
181
|
initial: true
|