This commit is contained in:
JyuHsin
2025-11-17 09:07:01 +08:00
parent d62e48bf27
commit 6c49e3f695
6 changed files with 33 additions and 10 deletions
@@ -149,7 +149,8 @@
}
connect() {
const WS_URL = window.location.host + "${base}/websocket"
//const WS_URL = window.location.host + "${base}/websocket"
const WS_URL = 'zhgh.jshvc.edu.cn' + "${base}/websocket"
const protocol = window.location.protocol === "http:" ? "ws://" : "wss://"
this.ws = new WebSocket(protocol + WS_URL)
}
@@ -683,7 +684,7 @@
$(document).ready(function () {
// 控制页脚显示的函数
function toggleFooter() {
var currentPath = window.location.pathname
var currentPath = getBaseSubAppPath()
var footer = $("#v4-footer")
if (currentPath === "/platform/v4/home") {
@@ -695,7 +696,7 @@
// 初始化:根据当前URL设置active状态
function setActiveNavItem() {
var currentPath = window.location.pathname
var currentPath = getBaseSubAppPath()
$(".v4-nav-item").removeClass("active")
$(".v4-nav-item").each(function () {
if ($(this).attr("href") === currentPath) {