浏览代码

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',