mirror of
https://github.com/infinilabs/coco-app.git
synced 2025-12-16 11:37:47 +01:00
refactor: switched routing mode to hash
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
{
|
||||
"label": "main",
|
||||
"title": "Coco AI",
|
||||
"url": "/ui",
|
||||
"url": "index.html/#/ui",
|
||||
"height": 590,
|
||||
"width": 680,
|
||||
"decorations": false,
|
||||
@@ -39,7 +39,7 @@
|
||||
{
|
||||
"label": "settings",
|
||||
"title": "Coco AI Settings",
|
||||
"url": "/ui/settings",
|
||||
"url": "index.html/#/ui/settings",
|
||||
"width": 1000,
|
||||
"minWidth": 1000,
|
||||
"height": 700,
|
||||
@@ -59,7 +59,7 @@
|
||||
{
|
||||
"label": "check",
|
||||
"title": "Coco AI Update",
|
||||
"url": "/ui/check",
|
||||
"url": "index.html/#/ui/check",
|
||||
"width": 340,
|
||||
"minWidth": 340,
|
||||
"height": 260,
|
||||
|
||||
@@ -524,7 +524,7 @@ export function useChatActions(
|
||||
skipTaskbar: false,
|
||||
decorations: true,
|
||||
closable: true,
|
||||
url: "/ui/chat",
|
||||
url: "index.html/#/ui/chat",
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { createBrowserRouter } from "react-router-dom";
|
||||
import { createHashRouter } from "react-router-dom";
|
||||
|
||||
import Layout from "./layout";
|
||||
import ErrorPage from "@/pages/error/index";
|
||||
@@ -16,7 +16,7 @@ const routerOptions = {
|
||||
},
|
||||
} as const;
|
||||
|
||||
export const router = createBrowserRouter(
|
||||
export const router = createHashRouter(
|
||||
[
|
||||
{
|
||||
path: "/",
|
||||
|
||||
Reference in New Issue
Block a user