![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
前端
YOLO哦
这个作者很懒,什么都没留下…
展开
-
webpack打包font时错误css文件路径导致报错
打包后,css里加载的font文件路径变成了:rootpath/static/css/static/fonts,而期望的应该是rootpath/static/fonts。解决方法:在build/utils的ExtractTextPlugin.extract里加上 publicPath: ‘…/…/’:原文链接:https://www.jianshu.com/p/458fe9cb3490// generate loader string to be used with extract text plu原创 2020-09-05 09:57:13 · 397 阅读 · 0 评论 -
<keep-alive> 和<router-view>实现路由缓存
<transition name="fade" mode="out-in"> <keep-alive> <router-view :key="key"></router-view> </keep-alive></transition>key() { //实现路由缓存(由route.js中keepAlive动态控制)原创 2020-08-06 09:10:45 · 510 阅读 · 0 评论 -
Vue2.x 引入高德地图
1.申请高德key https://console.amap.com2.Vue 引入地图组件。 官方文档 https://elemefe.github.io/vue-amap/#/原创 2020-07-07 16:44:41 · 277 阅读 · 0 评论 -
node-sass 安装失败解决方法
node-sass 安装失败解决方法指向淘宝镜像地址:npm i node-sass --sass_binary_site=https://npm.taobao.org/mirrors/node-sass/// 也可以设置系统环境变量的方式。示例// linux、mac 下SASS_BINARY_SITE=https://npm.taobao.org/mirrors/node-sass/...原创 2020-03-02 09:09:31 · 141 阅读 · 0 评论