优化服务详情页面

This commit is contained in:
TOP糯米 2023-04-09 10:50:23 +08:00
parent 04896b5455
commit 0607292316
1 changed files with 9 additions and 1 deletions

View File

@ -80,6 +80,7 @@
import AppLayout from "@/components/layout/layout";
import AppAppraiseSection from "@/components/appraise/section";
import AppLoadMore from "@/components/widgets/loadmore";
import { mapGetters } from "vuex";
export default {
name: "service-detail",
data() {
@ -110,6 +111,11 @@ export default {
AppAppraiseSection,
AppLoadMore,
},
computed: {
...mapGetters({
isLogin: "user/isLogin",
}),
},
async onLoad(e) {
this.pageConfig = getApp().globalData.pageConfig;
@ -168,7 +174,9 @@ export default {
* 初始化页面
*/
initPage() {
this.$store.dispatch("cart/update");
if (this.isLogin) {
this.$store.dispatch("cart/update");
}
},
/**
* 分享