我'm a Vue noob and just need to understand something pretty basic. I' m用于vue-cli 3,你有"App.vue",这是你的根组件,当然你有 <script>
和 <style>
标签,就像任何其他组件一样 . 但是,当我使用vue-cli 3启动Vue项目然后执行 vue add vuetify
时,App.vue不再包含这些标记,当我添加它们时,应用程序会中断!还有's a new folder called 503665 ? Can anyone break this down for me? I'很抱歉在这里问,但我可以't find anything about it on Vuetify'页面 .
更新:
当我尝试以同样的方式设置另一个项目时发生了一些奇怪的事情 - 在运行 vue add vuetify
之后,所有内容看起来都像我选择了以下选项:
? Use a pre-made template? (will replace App.vue and HelloWorld.vue) Yes
? Use custom theme? No
? Use custom properties (CSS variables)? No
? Select icon font md
? Use fonts as a dependency (for Electron or offline)? No
? Use a-la-carte components? No
? Use babel/polyfill? No
? Select locale en
我意识到 /views
文件夹来自于在该项目中安装了vue-router,我猜这可能与主 App.vue
文件不接受 <script>
或 <style>
标签有关?我将重新访问vue-router文档,但是这里的任何其他输入都将非常感激 .
1 回答
我看到
Use a pre-made template? (will replace App.vue and HelloWorld.vue)
问题你用yes
回答它,这将取代app.vue
和HelloWorld.vue
,所以在下一次输入no
来回答它时,你必须要注意,因为他们说(will replace App.vue and HelloWorld.vue)