Skip to content

Commit 4628d6d

Browse files
committed
refactor: Simplify createWebHistory call in router
1 parent 89b6670 commit 4628d6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/router/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const routes = [
4545

4646
// 建立 Router 實例
4747
const router = createRouter({
48-
history: createWebHistory(import.meta.env.BASE_URL), // 使用 HTML5 History 模式
48+
history: createWebHistory(),
4949
routes, // 將我們定義的路由規則陣列放入
5050
})
5151

0 commit comments

Comments
 (0)