Browse Source

解決search問題

Dev
18300102974 2 years ago
parent
commit
17a43a56b4
  1. 3
      FrontEnd/components/NavBar.vue
  2. 1
      FrontEnd/components/home/Search.vue
  3. 2
      FrontEnd/components/home/headerInlineSearch.vue

3
FrontEnd/components/NavBar.vue

@ -46,7 +46,7 @@
:exhibitionsSearchs="exhibitionsSearchs" :exhibitionsSearchs="exhibitionsSearchs"
:servicesLocations="servicesLocations" :servicesLocations="servicesLocations"
:servicesSearchs="servicesSearchs" :servicesSearchs="servicesSearchs"
@loaading="isPageLoading = true"
@loaading="isPageLoading = $event"
/> />
</div> </div>
@ -651,7 +651,6 @@
:servicesLocations="servicesLocations" :servicesLocations="servicesLocations"
:servicesSearchs="servicesSearchs" :servicesSearchs="servicesSearchs"
:populars="populars" :populars="populars"
@loaading="isPageLoading = true"
/> />
<mobileUserInfoPopup <mobileUserInfoPopup
v-show="width < 1366" v-show="width < 1366"

1
FrontEnd/components/home/Search.vue

@ -399,7 +399,6 @@ export default {
}, },
goToSearch() { goToSearch() {
this.isPageLoading = true; this.isPageLoading = true;
this.$emit('loaading', true);
if (this.WindowsWidth >= 1366) { if (this.WindowsWidth >= 1366) {
this.$router.push(this.localePath(`/${this.type}?q=${this.inputs}`)); this.$router.push(this.localePath(`/${this.type}?q=${this.inputs}`));
} }

2
FrontEnd/components/home/headerInlineSearch.vue

@ -375,7 +375,7 @@ export default {
this.$emit('loaading', true); this.$emit('loaading', true);
this.$router.push(this.localePath(`/${this.type}?q=${this.inputs}`)); this.$router.push(this.localePath(`/${this.type}?q=${this.inputs}`));
this.$nextTick(()=>{ this.$nextTick(()=>{
this.$emit('loaading', true);
this.$emit('loaading', false);
}); });
}, },
}, },

Loading…
Cancel
Save