refactor: ky
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user