Ver Fonte

fix: 修改路由模式

yongCode há 5 meses atrás
pai
commit
8b8e59011f
1 ficheiros alterados com 2 adições e 3 exclusões
  1. 2 3
      src/router/index.js

+ 2 - 3
src/router/index.js

@@ -1,8 +1,7 @@
-import { createRouter, createWebHistory } from 'vue-router'
+import { createRouter, createWebHashHistory } from 'vue-router'
 import HomeView from '../views/HomeView.vue'
-
 const router = createRouter({
-  history: createWebHistory(import.meta.env.BASE_URL),
+  history: createWebHashHistory(),
   routes: [
     {
       path: '/',