mirror of
https://github.com/amtoaer/bili-sync.git
synced 2026-06-09 17:50:13 +08:00
fix: 修复一些前端的小问题 (#641)
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { toast } from 'svelte-sonner';
|
||||
import api from './api';
|
||||
import type { SysInfo, TaskStatus } from './types';
|
||||
|
||||
// 支持的事件类型
|
||||
@@ -61,7 +62,7 @@ export class WebSocketManager {
|
||||
|
||||
this.connectionPromise = new Promise((resolve, reject) => {
|
||||
this.connecting = true;
|
||||
const token = localStorage.getItem('authToken') || '';
|
||||
const token = api.getAuthToken() || '';
|
||||
|
||||
try {
|
||||
const protocol = window.location.protocol === 'https:' ? 'wss://' : 'ws://';
|
||||
|
||||
Reference in New Issue
Block a user