From 6851680b996e64c1d66c035245b2f0f6eb3425c6 Mon Sep 17 00:00:00 2001
From: YM <479443481@qq.com>
Date: 星期六, 07 九月 2024 15:33:42 +0800
Subject: [PATCH] 1

---
 packageBookService/pages/bookServices/examination/examination.js |   15 +++++++++++++--
 1 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/packageBookService/pages/bookServices/examination/examination.js b/packageBookService/pages/bookServices/examination/examination.js
index c96c46d..2c9ab29 100644
--- a/packageBookService/pages/bookServices/examination/examination.js
+++ b/packageBookService/pages/bookServices/examination/examination.js
@@ -1,6 +1,9 @@
 import {
   getPublicImage
 } from "../../../../assets/js/middleGround/tool";
+import {
+  loginInfo
+} from '../../../../assets/js/login';
 const app = getApp();
 Page({
   /**
@@ -82,13 +85,21 @@
         mockid: options.mockid,
       });
     }
+
     const token = wx.getStorageSync(app.config.tokenKey)
+
     if (!token) {
       loginInfo(app, (data) => {
-        if (data) {} else {}
+        if (data) {
+          this.init();
+        } else {
+          this.init();
+        }
       })
+    } else {
+      this.init()
     }
-    this.init();
+
   },
 
   /**

--
Gitblit v1.9.1