![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
vue.js
_emm
这个作者很懒,什么都没留下…
展开
-
vue cli4.5.13项目兼容IE问题记录
vue-cli 4.5.13 IE兼容性原创 2023-03-02 12:03:49 · 589 阅读 · 0 评论 -
Vue-router 路由重复点击报错 NavigationDuplicated: Avoided redundant navigation to current location 解决
Vue-router 路由重复点击报错 NavigationDuplicated: Avoided redundant navigation to current location 解决解决方法:在router.js中加入以下代码const originalPush = VueRouter.prototype.pushVueRouter.prototype.push = function push(location) { return originalPush.call(this, locati原创 2022-03-11 19:28:24 · 898 阅读 · 0 评论 -
Vue项目打包去除console.log
vue cli3 方法:安装插件 babel-plugin-transform-remove-consolenpm i babel-plugin-transform-remove-console --save-devbabel.config.js 修改为if (process.env.NODE_ENV === 'production') { plugins.push(["transform-remove-console", { "exclude": ["error", "warn"] }])原创 2022-02-23 15:17:12 · 375 阅读 · 0 评论