feat: 实现首次登录功能,添加用户名和密码输入,更新状态管理

This commit is contained in:
2025-12-18 03:47:58 +08:00
parent 6e1ffe173a
commit ca1c3706b2
4 changed files with 60 additions and 23 deletions

View File

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