From 7bb960ef165d091678a65ddc01b6551ec4487daa Mon Sep 17 00:00:00 2001
From: 李凌 <344137771@qq.com>
Date: Mon, 29 Dec 2025 14:26:11 +0800
Subject: [PATCH] 1
---
src/config/index.js | 15 ++++++++++++++-
1 files changed, 14 insertions(+), 1 deletions(-)
diff --git a/src/config/index.js b/src/config/index.js
index 1c7376c..0042b3c 100644
--- a/src/config/index.js
+++ b/src/config/index.js
@@ -67,7 +67,20 @@
// 公司logo
export const LOGO = new URL('@/assets/imgs/logo.png', import.meta.url)
-export const customerServiceUrl = 'https://chat.onlinesupport.help/chat_online/index?channelId=5c7314eab72c4a72b2dc9b63c4502e69' // 客服外链链接
+
+
+export const customerServiceUrl = ()=>{
+ let str = 'https://chat.onlinesupport.help/chat_online/index?channelId=5c7314eab72c4a72b2dc9b63c4502e69'
+ let user = JSON.parse(localStorage.getItem('user'))
+ console.log(user);
+ let userName = '',pid = '';
+ if(user && user.userInfo){
+ userName = user.userInfo.username
+ pid = user.userInfo.usercode
+ }
+ str += `&userName=${userName}&pid=${pid}`
+ return str
+} // 客服外链链接
export default {
sliderOptions: {
--
Gitblit v1.9.3