ソースを参照

router history base

冯诚 3 年 前
コミット
48666f677b
1 ファイル変更1 行追加1 行削除
  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',