fix: default route for logo

This commit is contained in:
jialin
2025-02-23 13:32:03 +08:00
parent 69feb6a4f1
commit 2c2e9396c4
6 changed files with 16 additions and 10 deletions
+2 -4
View File
@@ -39,9 +39,7 @@ const LoginForm = () => {
}}
>
<div className="flex-center">
<span>
{intl?.formatMessage({ id: 'users.login.title' }, { name: '' })}
</span>
<span>{intl?.formatMessage({ id: 'users.login.title' })}</span>
<img
src={LogoIcon}
alt="logo"
@@ -50,7 +48,7 @@ const LoginForm = () => {
</div>
</div>
);
}, []);
}, [intl]);
const gotoDefaultPage = (userInfo: any) => {
const pathname =
+1 -1
View File
@@ -29,7 +29,7 @@ export const addWorkerGuide: Record<string, any> = {
getToken:
'Get-Content -Path (Join-Path -Path $env:APPDATA -ChildPath "gpustack\\token") -Raw',
registerWorker(params: { server: string; token: string }) {
return `Invoke-Expression "& { $((Invoke-WebRequest -Uri "https://get.gpustack.ai" -UseBasicParsing).Content) } --server-url ${params.server} --token ${params.token}"`;
return `Invoke-Expression "& { $((Invoke-WebRequest -Uri 'https://get.gpustack.ai' -UseBasicParsing).Content) } --server-url '${params.server}' --token '${params.token}'"`;
}
},
cuda: {