Explorar el Código

Merge branch 'release-buffer' of http://face3d.4dage.com:7005/chenlei/vue3-scene-web into demo

chenlei hace 2 años
padre
commit
4dc28ae4ce
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      src/router/index.ts

+ 2 - 2
src/router/index.ts

@@ -1,4 +1,4 @@
-import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router';
+import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router';
 
 const routes: Array<RouteRecordRaw> = [
   {
@@ -9,7 +9,7 @@ const routes: Array<RouteRecordRaw> = [
 ];
 
 const router = createRouter({
-  history: createWebHistory(process.env.BASE_URL),
+  history: createWebHashHistory(process.env.BASE_URL),
   routes,
 });