摘要: 1.前端安装 安装项目:vue init webpack docvote 进入docvote里:cd docvote 安装脚手架:cnpm i 运行:npm run dev 2.异步加载 const voteindex =() => import('@/components/voteindex'); 阅读全文
posted @ 2019-07-24 17:22 Seven077 阅读(112) 评论(0) 推荐(0) 编辑
摘要: js文件404问题 js文件404问题 原因:打包的项目静态资源的路径需要设置为绝对路径。如果是相对路径会出错 解决办法:修改config/index.js文件,将 assetsPublicPath修改为'./' element-icons.woff 文件 404 element-icons.wof 阅读全文
posted @ 2019-07-24 17:02 Seven077 阅读(6362) 评论(0) 推荐(0) 编辑