优化代码

This commit is contained in:
TOP糯米 2023-03-22 21:00:50 +08:00
parent 7801227096
commit 5de5fbc940
1 changed files with 4 additions and 4 deletions

View File

@ -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);
}
},
/**