refactor: ky

This commit is contained in:
skytek_xinliang
2026-05-07 11:17:30 +08:00
parent 87fbc1dda8
commit 71683482e1
15 changed files with 146 additions and 360 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
// 全域 HTTP 錯誤事件(Playground 專用)
//
// 目的:
// - 避免 axios interceptor 直接 import router 造成耦合
// - 避免 HTTP hooks 直接 import router 造成耦合
// - 由 router 層或 App 層決定要導到哪個錯誤頁與顯示哪些訊息
export const HTTP_ERROR_EVENT = 'sk-playground:http-error'