|
@ -1,4 +1,4 @@ |
|
|
import { createRouter, createWebHistory } from 'vue-router'; |
|
|
import { createRouter, createWebHashHistory } from 'vue-router'; |
|
|
// 还有 createWebHashHistory 和 createMemoryHistory
|
|
|
// 还有 createWebHashHistory 和 createMemoryHistory
|
|
|
|
|
|
|
|
|
export const routes = [ |
|
|
export const routes = [ |
|
@ -8,7 +8,7 @@ export const routes = [ |
|
|
]; |
|
|
]; |
|
|
|
|
|
|
|
|
const router = createRouter({ |
|
|
const router = createRouter({ |
|
|
history: createWebHistory(), |
|
|
history: createWebHashHistory(), |
|
|
routes: [ |
|
|
routes: [ |
|
|
{ |
|
|
{ |
|
|
path: '/', |
|
|
path: '/', |
|
|