File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 3737 "typescript-eslint" : " ^8.55.0" ,
3838 "unplugin-imagemin" : " ^0.7.0" ,
3939 "unplugin-turbo-console" : " ^2.3.0" ,
40- "unplugin-vue-router" : " ^0.19.2" ,
4140 "vite" : " ^7.3.1" ,
4241 "vite-plugin-vue-devtools" : " ^8.0.6" ,
4342 "vite-plugin-zip-pack" : " ^1.2.4" ,
4443 "vue" : " ^3.5.28" ,
4544 "vue-i18n" : " ^11.2.8" ,
46- "vue-router" : " ^4.6 .0" ,
45+ "vue-router" : " ^5.0 .0" ,
4746 "vue-tsc" : " ^3.2.4" ,
4847 "web-ext" : " ^9.3.0" ,
4948 "webext-bridge" : " ^6.0.1" ,
Original file line number Diff line number Diff line change 1010</template >
1111
1212<script setup lang="ts">
13- import { defineProps } from " vue"
14-
1513defineProps <{
1614 error: string
1715}>()
Original file line number Diff line number Diff line change 11/* eslint-disable */
22/* prettier-ignore */
3+ // oxfmt-ignore
34// @ts -nocheck
45// noinspection ES6UnusedImports
5- // Generated by unplugin- vue-router. !! DO NOT MODIFY THIS FILE !!
6+ // Generated by vue-router. !! DO NOT MODIFY THIS FILE !!
67// It's recommended to commit this file.
78// Make sure to add this file to your tsconfig.json file as an "includes" or "files" entry.
89
9- declare module 'vue-router/auto-resolver' {
10- export type ParamParserCustom = never
10+ import type {
11+ RouteRecordInfo ,
12+ ParamValue ,
13+ ParamValueOneOrMore ,
14+ ParamValueZeroOrMore ,
15+ ParamValueZeroOrOne ,
16+ } from 'vue-router'
17+
18+ declare module 'vue-router' {
19+ interface TypesConfig {
20+ ParamParsers : never
21+ }
1122}
1223
1324declare module 'vue-router/auto-routes' {
14- import type {
15- RouteRecordInfo ,
16- ParamValue ,
17- ParamValueOneOrMore ,
18- ParamValueZeroOrMore ,
19- ParamValueZeroOrOne ,
20- } from 'vue-router'
21-
2225 /**
23- * Route name map generated by unplugin- vue-router
26+ * Route name map generated by vue-router
2427 */
2528 export interface RouteNamedMap {
2629 '/action-popup/' : RouteRecordInfo <
@@ -131,7 +134,7 @@ declare module 'vue-router/auto-routes' {
131134 }
132135
133136 /**
134- * Route file to route info map by unplugin- vue-router.
137+ * Route file to route info map by vue-router.
135138 * Used by the \`sfc-typed-router\` Volar plugin to automatically type \`useRoute()\`.
136139 *
137140 * Each key is a file path relative to the project root with 2 properties:
@@ -244,3 +247,5 @@ declare module 'vue-router/auto-routes' {
244247 ? Info [ 'routes' ]
245248 : keyof RouteNamedMap
246249}
250+
251+ export { }
Original file line number Diff line number Diff line change 11/// <reference types="vite/client" />
2- /// <reference types="unplugin-vue-router/client" />
32
43// Put your variables here:
54
Original file line number Diff line number Diff line change 1- import { createRouter , createWebHistory } from "vue-router"
1+ import { createRouter , createWebHashHistory } from "vue-router"
22import { handleHotUpdate , routes } from "vue-router/auto-routes"
33
4- routes . push ( {
5- path : "/:catchAll(.*)*" ,
6- redirect : "/" ,
7- } )
4+ const finalRoutes = [
5+ ...routes ,
6+ {
7+ path : "/:catchAll(.*)*" ,
8+ redirect : "/" ,
9+ } ,
10+ ]
811
912export const appRouter = createRouter ( {
10- history : createWebHistory ( import . meta . env . BASE_URL ) ,
11- routes,
13+ history : createWebHashHistory ( ) ,
14+ routes : finalRoutes ,
1215} )
1316
1417if ( import . meta. hot ) {
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import { fileURLToPath } from "node:url"
33import { defineConfig } from "vite"
44import vue from "@vitejs/plugin-vue"
55import vueDevTools from "vite-plugin-vue-devtools"
6- import VueRouter from "unplugin- vue-router/vite"
6+ import VueRouter from "vue-router/vite"
77import TurboConsole from "unplugin-turbo-console/vite"
88import VueI18nPlugin from "@intlify/unplugin-vue-i18n/vite"
99import ui from "@nuxt/ui/vite"
You can’t perform that action at this time.
0 commit comments