You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
793 B
34 lines
793 B
1. vue create 创建项目
|
|
2. 路由按需加载
|
|
3. elementui按需加载
|
|
安装elementui,
|
|
安装npm install babel-plugin-component -D,
|
|
更改babel.config.js
|
|
"plugins": [
|
|
[
|
|
"component",
|
|
{
|
|
"libraryName": "element-ui",
|
|
"styleLibraryName": "theme-chalk"
|
|
}
|
|
]
|
|
]
|
|
4. 安装echarts,安装jquery
|
|
chainWebpack: config => {
|
|
config.plugin('provide').use(webpack.ProvidePlugin, [{
|
|
$: 'jquery',
|
|
jquery: 'jquery',
|
|
jQuery: 'jquery',
|
|
'window.jQuery': 'jquery'
|
|
}])
|
|
},
|
|
|
|
|
|
CryptoJS,lodash.debounce
|
|
|
|
|
|
问题:
|
|
1. vue-resource、axios混用
|
|
2. components中封装的组件大部分是没用的,应该删除
|
|
3. 引入文件用的是相对路径’../../../views/LeftMenu.vue‘,改成使用vue.config.js中定义的别名
|
|
4. |