Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
xianyu-ufo-app-web
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
huangyCode
5 years ago
Commit
4a1520f6d17fb1aa28e1f4375776580cd0e96466
1 parent
de537d6f
修复筛选回退不刷新
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
apps/pages/list/filtrate.vue
apps/pages/list/filtrate.vue
View file @
4a1520f
...
...
@@ -35,7 +35,7 @@
</div>
</template>
<script>
import {createNamespacedHelpers} from 'vuex';
import {
mapState,
createNamespacedHelpers} from 'vuex';
const {mapActions} = createNamespacedHelpers('list');
...
...
@@ -67,6 +67,9 @@ export default {
activated() {
let params = this.$route.query;
if (this.yoho.direction === 'forword') {
Object.assign(this.$data, this.$options.data());
}
if (Object.keys(params).length && params.listType) {
this.listType = params.listType;
delete params.listType;
...
...
@@ -79,6 +82,11 @@ export default {
!params.order && (params.order = 'sale_desc');
this.fetchData(params);
},
computed: {
...mapState(['yoho'])
},
methods: {
...mapActions(['fetchFilterData']),
clear() {
...
...
@@ -215,7 +223,7 @@ export default {
justify-content: space-between;
.cancel {
font-size: 3
8
px;
font-size: 3
6
px;
color: #888;
}
}
...
...
Please
register
or
login
to post a comment