![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
vue
程序员中长的最帅的
在秃头的路上越走越远
展开
-
在一个IIS服务下部署多个VUE项目
项目配置基于vuecli4 vue.config.js文件配置 module.exports = { publicPath:'/wxPublic/',//需要访问的地址 outputDir:'dist/wxPublic' //编译输出的目录 } 路由配置 //不能使用history模式 会403 const router = new VueRouter({ base: '/wxPublic/', routes }) index.html <met原创 2020-09-30 16:28:57 · 731 阅读 · 0 评论 -
vue 图片横向无限滚动 scoll
不过于依赖CSS主要核心代码都在JS中完成 //获取ULDOM let ul = document.getElementById('ul') //UL调用动画 ul.style=`animation:scoll ${this.appData.FullImageUrls.length*5}s linear 0s infinite;` //获取ULDOM元素宽度 let width = window.getComputedStyle(ul).width width = width.slice(0,原创 2020-06-30 18:05:43 · 4215 阅读 · 1 评论 -
vue 聊天实现 quill-image-drop-module上传文件到后端
个人代码,该文章只有聊天窗口主体,其它部份的组件都比较简单就不发出来了。 个人觉得比较难的地方是将富文本的图片base64转成文件传给后端。 这个不是教学文章,只是提供一个思路,所以懒得解释那么多了。反正我自己是肯定能看懂的 <template> <div class="edit_container" style=""> <div class="h...原创 2020-04-09 16:43:40 · 1071 阅读 · 0 评论 -
快速重置vuex的state
let initState={ hasLogin: false, userInfo: {}, websock: undefined, /*消息通知*/ message:[], /*即时通讯*/ im:[], } let cloneDeep =(data)=>{//深度copy一份数据 return JSON.parse(JSON.stringify(dat...原创 2020-03-23 10:45:45 · 1075 阅读 · 1 评论 -
VUE data数据 初始化 关闭弹窗后数据清空
/** * 初始化 * @param _this * @param keys */ function info(_this,...keys) { for (let i=0;i<keys.length;i++){ Object.assign(_this.$data[keys[i]], _this.$options.data()[keys[i]]) } } 可以...原创 2019-11-08 11:52:25 · 3291 阅读 · 0 评论