为联保页面增加登录判断

This commit is contained in:
TOP糯米 2023-04-10 17:23:20 +08:00
parent d838c44897
commit 81224be529
1 changed files with 11 additions and 1 deletions

View File

@ -68,6 +68,7 @@
<script>
import AppLayout from "@/components/layout/layout";
import { mapGetters } from "vuex";
export default {
name: "service-other-after-market",
data() {
@ -83,8 +84,17 @@ export default {
components: {
AppLayout,
},
computed: {
...mapGetters({
isLogin: "user/isLogin",
}),
},
onLoad() {},
onShow() {},
onShow() {
if (!this.isLogin) {
this.$store.commit("user/showLoginModal", true);
}
},
onReady() {},
onReachBottom() {},
onPullDownRefresh() {},