Browse Source

fix: 修改路由模式

yongCode 5 months ago
parent
commit
8b8e59011f
1 changed files with 2 additions and 3 deletions
  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'
 import HomeView from '../views/HomeView.vue'
-
 const router = createRouter({
 const router = createRouter({
-  history: createWebHistory(import.meta.env.BASE_URL),
+  history: createWebHashHistory(),
   routes: [
   routes: [
     {
     {
       path: '/',
       path: '/',