From 0b568d0656b55368895cb14393c191925eb31de0 Mon Sep 17 00:00:00 2001
From: jhzh <1628036192@qq.com>
Date: Sun, 21 Sep 2025 15:56:38 +0800
Subject: [PATCH] 1

---
 src/page/home/home.vue |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/page/home/home.vue b/src/page/home/home.vue
index 8214cf5..8b39b13 100644
--- a/src/page/home/home.vue
+++ b/src/page/home/home.vue
@@ -354,7 +354,11 @@
     },
     aRouter1() {
         // window.open('https://chatlink.wchatlink.com/widget/standalone.html?eid=139eb5679d5a9aea0650dbb3c96ca1a2&language=en');
-      window.open(this.onlineService);
+        if (window.localStorage.getItem("USERTOKEN")) {
+          window.open(this.onlineService);
+        }else{
+          this.$router.push('/login')
+        }
     },
 
     getdialog() {
@@ -499,7 +503,6 @@
       let data = await api.getInfoSite();
       if (data.status === 0) {
         this.onlineService = data.data.onlineService;
-        console.log(this.onlineService, 'this.onlineService');
       } else {
         this.$store.commit("elAlertShow", {
           elAlertShow: true,

--
Gitblit v1.9.3