From 35b57b01f82a5f7a05fb692080c80b9e44a69aa5 Mon Sep 17 00:00:00 2001
From: 李 <344137771@qq.com>
Date: Wed, 20 May 2026 23:22:49 +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