From 8093630c08657900dad0721a278af211917d20de Mon Sep 17 00:00:00 2001 From: Haoqun Jiang Date: Tue, 22 Oct 2019 15:38:41 +0800 Subject: [PATCH] fix(ui): "add router" button should not require prompt in terminal (#4739) --- packages/@vue/cli-ui/ui-defaults/suggestions.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/@vue/cli-ui/ui-defaults/suggestions.js b/packages/@vue/cli-ui/ui-defaults/suggestions.js index 735f6052c3..3ba5bb5448 100644 --- a/packages/@vue/cli-ui/ui-defaults/suggestions.js +++ b/packages/@vue/cli-ui/ui-defaults/suggestions.js @@ -89,7 +89,9 @@ async function install (api, id) { apply: loadModule(`@vue/cli-service/generator/${id}`, context) }) } else { - await add(id, {}, context) + // FIXME: a temporary fix for adding router plugin + // should implement a plugin prompt ui later + await add(id, { $inlineOptions: '{}' }, context) } } catch (e) { error = e