优化代码
This commit is contained in:
parent
7801227096
commit
5de5fbc940
|
@ -156,15 +156,15 @@ export default {
|
||||||
onPullDownRefresh() {},
|
onPullDownRefresh() {},
|
||||||
methods: {
|
methods: {
|
||||||
/**
|
/**
|
||||||
* 服务分类
|
* 点击导航
|
||||||
*/
|
*/
|
||||||
toService(page) {
|
toService(page) {
|
||||||
const params = this.$utils.getUrlParams(page);
|
const params = this.$utils.getUrlParams(page);
|
||||||
if (page.indexOf("demand") > 0) {
|
if (page.indexOf("service/cate") > 0) {
|
||||||
this.$utils.toPage(page);
|
|
||||||
} else {
|
|
||||||
this.$store.commit("system/currentCateId", params.id);
|
this.$store.commit("system/currentCateId", params.id);
|
||||||
this.$utils.toPage(page, {}, "switch");
|
this.$utils.toPage(page, {}, "switch");
|
||||||
|
} else {
|
||||||
|
this.$utils.toPage(page);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue