yang1998 преди 3 седмици
родител
ревизия
923d5e13db
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      src/router/index.js

+ 2 - 2
src/router/index.js

@@ -1,4 +1,4 @@
-import { createWebHistory, createRouter } from "vue-router";
+import { createWebHistory, createWebHashHistory, createRouter } from "vue-router";
 
 const routes = [
   {
@@ -10,7 +10,7 @@ const routes = [
 ]
 
 const router = createRouter({
-  history: createWebHistory(""),
+  history: createWebHashHistory(),
   routes: routes,
   // scrollBehavior (to, from, savedPosition) {
   //   if (savedPosition) {