Sfoglia il codice sorgente

router history base

冯诚 3 anni fa
parent
commit
48666f677b
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/router.ts

+ 1 - 1
src/router.ts

@@ -1,7 +1,7 @@
 import { createRouter, createWebHistory } from 'vue-router'
 
 export default createRouter({
-  history: createWebHistory(),
+  history: createWebHistory(import.meta.env.BASE_URL),
   routes: [
     {
       path: '/login',