|
@@ -7,7 +7,7 @@ export const readyRouteName = {
|
|
|
query: "query",
|
|
|
hotspot: "hotspot",
|
|
|
measure: "measure",
|
|
|
- draw: "draw",
|
|
|
+ graphic: "graphic",
|
|
|
} as const;
|
|
|
|
|
|
export const writeRouteName = {
|
|
@@ -17,9 +17,10 @@ export const writeRouteName = {
|
|
|
|
|
|
export const defRouteName = readyRouteName.query;
|
|
|
|
|
|
-export type RouteNameRaw<T extends ModeFlag = any> = T extends typeof modeFlags.LOGIN
|
|
|
- ? typeof writeRouteName
|
|
|
- : typeof readyRouteName;
|
|
|
+export type RouteNameRaw<T extends ModeFlag = any> =
|
|
|
+ T extends typeof modeFlags.LOGIN
|
|
|
+ ? typeof writeRouteName
|
|
|
+ : typeof readyRouteName;
|
|
|
|
|
|
export type RouteMetaAtom = {
|
|
|
title: string;
|
|
@@ -36,7 +37,7 @@ export const readyRouteMeta: RouteMetaRaw = {
|
|
|
[readyRouteName.query]: { title: ui18n.t("sys.query") },
|
|
|
[readyRouteName.hotspot]: { title: ui18n.t("hotspot.name") },
|
|
|
[readyRouteName.measure]: { title: ui18n.t("measure.name") },
|
|
|
- [readyRouteName.draw]: { title: "绘图" },
|
|
|
+ [readyRouteName.graphic]: { title: "绘图" },
|
|
|
};
|
|
|
|
|
|
export const writeRouteMeta: RouteMetaRaw<typeof modeFlags.LOGIN> = {
|