Explorar el Código

bug修复

master
suizhijia hace 5 años
padre
commit
d7d413d70d
Se han modificado 3 ficheros con 4 adiciones y 1 borrados
  1. +1
    -1
      src/App.vue
  2. +2
    -0
      src/components/sidebar.vue
  3. +1
    -0
      src/store/index.js

+ 1
- 1
src/App.vue Ver fichero

@@ -59,7 +59,7 @@
//获取当前页面路径
let path = this.$route.path;
//判断是否在可滑动切换页面的列表中
if(allPage.indexOf(path)==-1 || scrollTop){
if(allPage.indexOf(path)==-1 || scrollTop || this.$store.state.menuState){
return;
}
//判断是否只可向一个方向滑动

+ 2
- 0
src/components/sidebar.vue Ver fichero

@@ -92,9 +92,11 @@
// }
},
open() {
this.$store.state.menuState = true;
this.$refs.sidebar.style.left = '0%';
},
close() {
this.$store.state.menuState = false;
this.$refs.sidebar.style.left = '-100%';
},
show1(index) {

+ 1
- 0
src/store/index.js Ver fichero

@@ -5,6 +5,7 @@ Vue.use(Vuex)

export default new Vuex.Store({
state: {
menuState:false,
imgBaseUrl: '',
pagePath: [
[

Cargando…
Cancelar
Guardar