講師回答 / Brian
可以具體看看console中的錯誤提示,根據錯誤來定位問題,修改代碼。課程項目代碼:https://github.com/toimc/vue-lessons-demo
2020-07-25
講師回答 / Brian
這個沒有絕對的拆分標準,組件一定要邏輯獨立,這樣方便維護。如果是代碼規范可以參考官方:https://cn.vuejs.org/v2/style-guide/index.html
2020-07-24
新聞列表上面的添加,可以在user.vue中加入 <router-link :to="{name:'add'}">添加</router-link>
2020-07-15
講師回答 / Brian
樓上正解,3.0的語法已經發生了變化。不能new vue了,需要使用createApp:https://v3.vuejs.org/guide/introduction.html#declarative-rendering
2020-06-26