Refactor MasterDetailMntC.vue for improved readability and consistency
This commit is contained in:
@@ -13,7 +13,7 @@ export type HttpErrorDetail = {
|
||||
|
||||
let httpErrorEmitted = false
|
||||
|
||||
export function emitHttpError (detail: HttpErrorDetail) {
|
||||
export function emitHttpError(detail: HttpErrorDetail) {
|
||||
// 避免同一波大量錯誤觸發多次導頁
|
||||
if (httpErrorEmitted) return
|
||||
httpErrorEmitted = true
|
||||
@@ -25,4 +25,3 @@ export function emitHttpError (detail: HttpErrorDetail) {
|
||||
httpErrorEmitted = false
|
||||
}, 0)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user