fix
Deploy / deploy (push) Has been cancelled

This commit is contained in:
xuyue committed 2025-10-12 14:09:15 +08:00
1 parent 6ee8fe02ba
commit a08f4a1935
4 files changed
+104 -63

No files matched your search

+13
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" },
{