mirror of
https://github.com/Tencent/tdesign-vue-next-starter.git
synced 2024-12-23 03:42:57 +08:00
fix(router): revert to hash router
This commit is contained in:
parent
6f2c9d3f2e
commit
0f182d8315
|
@ -1,4 +1,4 @@
|
||||||
import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router';
|
import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router';
|
||||||
|
|
||||||
import baseRouters from './modules/base';
|
import baseRouters from './modules/base';
|
||||||
import componentsRouters from './modules/components';
|
import componentsRouters from './modules/components';
|
||||||
|
@ -28,7 +28,7 @@ export const page404 = {
|
||||||
};
|
};
|
||||||
|
|
||||||
const router = createRouter({
|
const router = createRouter({
|
||||||
history: createWebHistory(),
|
history: createWebHashHistory(),
|
||||||
routes: defaultRouterList,
|
routes: defaultRouterList,
|
||||||
scrollBehavior() {
|
scrollBehavior() {
|
||||||
return {
|
return {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user