mirror of
https://github.com/Megghy/vtsuru.live.git
synced 2025-12-06 18:36:55 +08:00
feat: 修改 sendSelfInfo 函数以使用 isFromClient 判断客户端类型
This commit is contained in:
@@ -297,9 +297,9 @@ export const useWebFetcher = defineStore('WebFetcher', () => {
|
||||
}
|
||||
async function sendSelfInfo(client: signalR.HubConnection) {
|
||||
return client.invoke('SetSelfInfo',
|
||||
isTauri ? `tauri ${platform()} ${version()}` : navigator.userAgent,
|
||||
isTauri ? 'tauri' : 'web',
|
||||
isTauri ? await getVersion() : '1.0.0',
|
||||
isFromClient ? `tauri ${platform()} ${version()}` : navigator.userAgent,
|
||||
isFromClient ? 'tauri' : 'web',
|
||||
isFromClient ? await getVersion() : '1.0.0',
|
||||
webfetcherType.value === 'direct');
|
||||
}
|
||||
type ResponseFetchRequestData = {
|
||||
|
||||
Reference in New Issue
Block a user