- 在引入element ui的时需要将样式代码哪一行也要加上去
import ElementUI from 'element-ui'; import 'element-ui/lib/theme-chalk/index.css';
- 使用vuex中的数据需要在computed属性中
- vue-router在route中导入组件时,箭头函数不要写{},否则跳转的组件不显示
//正确写法 component: () => import('url') //错误写法 component: () => import('url')