fix refresh app bug

storage_local 1.0.0
nineven 5 years ago
parent 6cec076911
commit de55f72941
  1. 14
      fir_client/src/components/FirApps.vue

@ -242,11 +242,12 @@
hdata: {},
willDeleteApp: false,
delapp: {},
has_next:true,
has_next:false,
query:{'page':1,size:20},
searchflag:false,
uploadflag:false,
autoloadflag:true
autoloadflag:true,
firstloadflag:true,
}
}, methods: {
searchFun(){
@ -319,6 +320,10 @@
getapps(data => {
if (data.code === 1000) {
if(this.firstloadflag){
window.addEventListener('scroll',this.auto_load);
this.firstloadflag = false
}
this.autoloadflag = true;
if(this.uploadflag){
@ -458,11 +463,10 @@
}
}, mounted() {
// this.$store.dispatch('dosetAh',this.getBH);
window.addEventListener('scroll',this.auto_load);
this.$store.dispatch('doucurrentapp', {});
this.getappsFun({});
// window.addEventListener('scroll',this.auto_load);
},
destroyed(){

Loading…
Cancel
Save