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