Skip to content

Commit 8093630

Browse files
authored
fix(ui): "add router" button should not require prompt in terminal (#4739)
1 parent 6904e3b commit 8093630

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/@vue/cli-ui/ui-defaults/suggestions.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,9 @@ async function install (api, id) {
8989
apply: loadModule(`@vue/cli-service/generator/${id}`, context)
9090
})
9191
} else {
92-
await add(id, {}, context)
92+
// FIXME: a temporary fix for adding router plugin
93+
// should implement a plugin prompt ui later
94+
await add(id, { $inlineOptions: '{}' }, context)
9395
}
9496
} catch (e) {
9597
error = e

0 commit comments

Comments
 (0)