1. Vue 中使用element-ui樣式無效
示例按需加載組件,引用button 後發現樣式無效,後經搜索發現沒有引入樣式,加上即可
2. 點擊校驗後報錯
需要安裝vue-notification
npm install --savevue-notification
並在main.js中引用組件
import Notifications from "vue-notification"
Vue.use(Notifications)
3. 點擊按鈕不提示信息
經搜索發現 vue-notification 組件需要在.vue文件中引用
在app.vue中 添加 <notifications /> 提示框就出來了