浏览代码

路由配置

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) {