10 2021 档案

摘要: 阅读全文
posted @ 2021-10-29 14:42 chicidol 阅读(57) 评论(0) 推荐(0) 编辑
摘要:方案一:把http请求换为https 方案二:可能是后端的原因,找后端看下 阅读全文
posted @ 2021-10-15 16:16 chicidol 阅读(1368) 评论(0) 推荐(0) 编辑
摘要:1. 下载Minify插件 搜索minify, 可以得到以下结果,点击Install即可下载, 我下载了前两个插件。 2. 执行压缩命令 首先鼠标选中并打开需要压缩的页面,然后Ctrl + Shift + P出来几个选项,选择Minify选项即可 即可发现已经生成了一个新的压缩过的min文件 3. 阅读全文
posted @ 2021-10-15 11:14 chicidol 阅读(804) 评论(0) 推荐(0) 编辑
摘要://maskOff 换成你的弹窗变量 监听弹窗开启 关闭 maskOff (newVal) { if (newVal) { document.body.style.overflow = "hidden"; } else { document.body.style.overflow = "auto"; 阅读全文
posted @ 2021-10-12 14:18 chicidol 阅读(53) 评论(0) 推荐(0) 编辑
摘要:解决方案: 步骤一:给html和body设置height和overflow:scroll 步骤二:并且滚动事件的监听一定要写第三个参数: window.addEventListener('scroll', this.onScroll, true) 设置body的样式: window.document 阅读全文
posted @ 2021-10-12 11:53 chicidol 阅读(572) 评论(0) 推荐(0) 编辑
摘要:白屏原因:安卓低版本无法解析es6语法,需要借助babel把es6转化为es5 安装npm install @babel/polyfill 在main.js第一行引入import '@babel/polyfill' //vue.config.js非常重要 const path = require(' 阅读全文
posted @ 2021-10-11 15:11 chicidol 阅读(569) 评论(0) 推荐(0) 编辑
摘要://store->modules->app.js const state = { third: false, } const mutations = { SET_THIRD: (state, third) => { state.third = third }, } const actions = { 阅读全文
posted @ 2021-10-08 14:30 chicidol 阅读(15) 评论(0) 推荐(0) 编辑