Skip to content

Commit

Permalink
update route noted
Browse files Browse the repository at this point in the history
  • Loading branch information
penndev committed Aug 24, 2024
1 parent f798f00 commit ade6d30
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/router/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ if (import.meta.env.MODE === 'wafcdn') {
}

const router = createRouter({
// history: createMemoryHistory() //- http://localhost:5173/ 永远不变
// history: createWebHistory(), //- http://localhost:5173/dashboard 模拟真实路由
history: createWebHashHistory(), // - http://localhost:5173/#/dashboard hash模拟路由
// history: createMemoryHistory() // 内存模式 http://localhost:5173/ 内存路由,所有的变化都不在路由上展示
// history: createWebHistory(), // h5模式 - http://localhost:5173/dashboard 模拟真实路由,需要服务器重定向到html
history: createWebHashHistory(), // hash模式 - http://localhost:5173/#/dashboard 通过锚点实现路由
routes
})

Expand Down

0 comments on commit ade6d30

Please sign in to comment.