From 2634af14b62f5c03d3957f6964fe6c6706f01b57 Mon Sep 17 00:00:00 2001 From: unknown <331404948@qq.com> Date: Wed, 5 Jun 2024 11:48:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86=E5=AD=A6=E8=BD=A6?= =?UTF-8?q?=E7=99=BB=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/tabbar/learnCar/index.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pages/tabbar/learnCar/index.vue b/pages/tabbar/learnCar/index.vue index 27159ec..12546df 100644 --- a/pages/tabbar/learnCar/index.vue +++ b/pages/tabbar/learnCar/index.vue @@ -42,6 +42,10 @@ this.init() }, onLoad() { + if(!this.token) { + this.$store.commit('goLogin') + return this.$u.toast('请先登录') + } this.trainProcess() }, onShow() {