![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Vue
lucky_oak
这个作者很懒,什么都没留下…
展开
-
Vue 不同域名下cookie值获取
首先引入js-cookie库 $ npm install js-cookie --save 然后设置cookie值到二级域名下: export function setToken(token) { return Cookies.set("token", token, { domain: ['localhost', '127.0.0.1'].includes(document.domain) ? document.domain:".xxx.com" } 现在a.xxx.com和b.xxx.com 都原创 2021-03-17 11:00:25 · 3450 阅读 · 2 评论 -
vue 打包线上去掉console.log
webpack.prod.conf.js new webpack.optimize.UglifyJsPlugin({ compress:{ warnings: false, drop_debugger: true, drop_console: true } })原创 2020-11-18 17:35:52 · 401 阅读 · 0 评论 -
vue无限滚动插件vue-seamless-scroll
项目中需要列表无线滚动操作,找到这个插件vue-seamless-scroll 记录使用方法: // **main.js** // 1.全局 install import Vue from 'vue' import scroll from 'vue-seamless-scroll' Vue.use(scroll) // 或者你可以自己设置全局注册的组件名 默认注册的组件名是 vue-seamless-scroll Vue.use(scroll,{componentName: 'scroll-seamles原创 2020-10-10 16:13:52 · 781 阅读 · 0 评论