From 3d0e0f73005f29665906fe8a4bac4d63614b134a Mon Sep 17 00:00:00 2001 From: Fine Date: Tue, 1 Aug 2023 14:43:01 +0800 Subject: [PATCH] revert: update --- src/router/index.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/router/index.ts b/src/router/index.ts index f876b1d8..60eebf24 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -14,6 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +import type { RouteRecordRaw } from "vue-router"; import { createRouter, createWebHistory } from "vue-router"; import { routesDashboard } from "./dashboard"; import { routesMarketplace } from "./marketplace"; @@ -21,7 +22,13 @@ import { routesAlarm } from "./alarm"; import routesLayers from "./layer"; import { routesSettings } from "./settings"; -const routes = [...routesMarketplace, ...routesLayers, ...routesAlarm, ...routesDashboard, ...routesSettings]; +const routes: RouteRecordRaw[] = [ + ...routesMarketplace, + ...routesLayers, + ...routesAlarm, + ...routesDashboard, + ...routesSettings, +]; const router = createRouter({ history: createWebHistory(import.meta.env.BASE_URL),