From 2beccb5db78ed0bf1ae6ab968a1192e2ccb35fd1 Mon Sep 17 00:00:00 2001 From: Yoshimasa Obayashi Date: Fri, 21 Feb 2020 15:49:23 +0900 Subject: [PATCH] docs: update vue-cli of en-US, syncing with zh-CN (#1799) --- docs/vue/use-with-vue-cli.en-US.md | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/docs/vue/use-with-vue-cli.en-US.md b/docs/vue/use-with-vue-cli.en-US.md index 6332ee37f..6785063ff 100644 --- a/docs/vue/use-with-vue-cli.en-US.md +++ b/docs/vue/use-with-vue-cli.en-US.md @@ -70,12 +70,9 @@ Vue.component(Button.name, Button); Vue.config.productionTip = false; -/* eslint-disable no-new */ new Vue({ - el: '#app', - components: { App }, - template: '', -}); + render: h => h(App), +}).$mount('#app'); ``` Modify `src/App.vue`。 @@ -161,12 +158,9 @@ Remove the `import 'ant-design-vue/dist/antd.css';` statement added before becau Vue.config.productionTip = false - /* eslint-disable no-new */ new Vue({ - el: '#app', - components: { App }, - template: '' - }) + render: h => h(App) + }).$mount('#app') ``` Then reboot with `npm run dev` and visit the demo page, you should not find any [warning messages](https://zos.alipayobjects.com/rmsportal/vgcHJRVZFmPjAawwVoXK.png) in the console, which prove that the `import on demand` config is working now. You will find more info about it in [this guide](/docs/vue/getting-started/#Import-on-Demand).