Compare commits

...

3 Commits

Author SHA1 Message Date
bbig 43c2e8ed39 update docker-compose 2023-07-22 01:13:39 +08:00
bbig c66defa337 refresh page when routing to logout 2023-07-12 22:06:46 +08:00
bbig dcf079db65 Changed HashRouter to BrowserRouter to prevent '#' in URL 2023-07-12 21:45:12 +08:00
3 changed files with 6 additions and 3 deletions
+2 -1
View File
@@ -16,7 +16,8 @@ import { Path, SlotID } from "../constant";
import { ErrorBoundary } from "./error";
import {
HashRouter as Router,
// HashRouter as Router,
BrowserRouter as Router,
Routes,
Route,
useLocation,
+2 -1
View File
@@ -59,7 +59,8 @@ export function Settings() {
text={Locale.Settings.Danger.Logout.Action}
onClick={async () => {
if (await showConfirm(Locale.Settings.Danger.Logout.Confirm)) {
navigate(Path.Logout);
// navigate(Path.Logout);
window.location.href = '/logout';
}
}}
type="danger"
+2 -1
View File
@@ -1,3 +1,4 @@
# docker compose -f docker-compose.prod.yml up --build -d
version: '3'
services:
prod:
@@ -11,5 +12,5 @@ services:
- OPENAI_API_KEY=$OPENAI_API_KEY
- BASE_URL=$BASE_URL
ports:
- 8038:3000
- 127.0.0.1:8038:3000
command: /run-app.sh