fix: 更新依赖项版本以修复兼容性问题并优化导入路径

This commit is contained in:
2026-02-19 04:00:09 +08:00
parent f33d4c293d
commit e53c166c29
6 changed files with 57 additions and 93 deletions

View File

@@ -1,5 +1,5 @@
import { QueryClient, Query } from '@kevisual/query'
import { QueryLoginBrowser } from '@kevisual/query-login'
import { Query } from '@kevisual/query'
import { QueryLoginBrowser } from '@kevisual/api/query-login'
const getUrl = () => {
const host = window.location.host
const isKevisual = host.includes('kevisual');
@@ -10,11 +10,11 @@ const getUrl = () => {
return '/client/router'
}
export const query = new QueryClient({
export const query = new Query({
url: getUrl()
});
export const clientQuery = new QueryClient({
export const clientQuery = new Query({
url: '/client/router'
});
@@ -23,5 +23,5 @@ export const remoteQuery = new Query({
});
export const queryLogin = new QueryLoginBrowser({
query: remoteQuery
query: remoteQuery as any,
});