fix
Some checks failed
Deploy / deploy (push) Has been cancelled

This commit is contained in:
2025-10-12 14:09:15 +08:00
parent 6ee8fe02ba
commit a08f4a1935
4 changed files with 104 additions and 63 deletions

View File

@@ -20,8 +20,21 @@ interface Testcase {
const message = useMessage()
const configStore = useConfigStore()
const userStore = useUserStore()
const { updateConfig } = useConfigWebSocket()
// 确保只有登录用户才能使用WebSocket
watch(
() => userStore.isAuthed,
(isAuthed) => {
if (!isAuthed) {
// 如果用户未登录禁用WebSocket功能
console.warn('用户未登录WebSocket配置更新功能已禁用')
}
},
{ immediate: true }
)
const testcaseColumns: DataTableColumn<Testcase>[] = [
{ title: "测试用例 ID", key: "id" },
{