mirror of
http://junepve.top:3000/chicrobot/mainPage.git
synced 2026-10-30 04:31:29 +08:00
添加工具箱及跳转
This commit is contained in:
1 parent
a9cb7f9d15
commit
0c565ead27
2 files changed
+13
No files matched your search
@@ -54,6 +54,7 @@ window.addEventListener('load', function() {
|
||||
const chatUrl = `${window.location.protocol}//${currentHost}/baseTalk`;
|
||||
const cloudreveUrl = `${window.location.protocol}//${currentHost}:5212`;
|
||||
const codeServerUrl = `${window.location.protocol}//${currentHost}:8443`;
|
||||
const baichuanToolsUrl = `${window.location.protocol}//${currentHost}/xTools`;
|
||||
// 构建博客文章URL,指向8090端口
|
||||
const blogBaseUrl = `${window.location.protocol}//${currentHost}:8090`;
|
||||
|
||||
@@ -65,6 +66,7 @@ window.addEventListener('load', function() {
|
||||
const chatLink = document.getElementById('chatLink');
|
||||
const cloudreveLink = document.getElementById('cloudreveLink');
|
||||
const codeServerLink = document.getElementById('codeServerLink');
|
||||
const baichuanToolsLink = document.getElementById('baichuanToolsLink');
|
||||
|
||||
if (portainerLink) {
|
||||
portainerLink.href = portainerUrl;
|
||||
@@ -94,6 +96,10 @@ window.addEventListener('load', function() {
|
||||
codeServerLink.href = codeServerUrl;
|
||||
codeServerLink.target = '_blank';
|
||||
}
|
||||
if (baichuanToolsLink) {
|
||||
baichuanToolsLink.href = baichuanToolsUrl;
|
||||
baichuanToolsLink.target = '_blank';
|
||||
}
|
||||
|
||||
// 处理博客文章链接
|
||||
const blogPosts = document.querySelectorAll('.thought-card');
|
||||
|
||||
Reference in new issue
Block a user