摘要:
//maskOff 换成你的弹窗变量 监听弹窗开启 关闭 maskOff (newVal) { if (newVal) { document.body.style.overflow = "hidden"; } else { document.body.style.overflow = "auto"; 阅读全文
摘要:
解决方案: 步骤一:给html和body设置height和overflow:scroll 步骤二:并且滚动事件的监听一定要写第三个参数: window.addEventListener('scroll', this.onScroll, true) 设置body的样式: window.document 阅读全文
摘要:
白屏原因:安卓低版本无法解析es6语法,需要借助babel把es6转化为es5 安装npm install @babel/polyfill 在main.js第一行引入import '@babel/polyfill' //vue.config.js非常重要 const path = require(' 阅读全文
摘要:
//store->modules->app.js const state = { third: false, } const mutations = { SET_THIRD: (state, third) => { state.third = third }, } const actions = { 阅读全文