为联保页面增加登录判断

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