Refactor MasterDetailMntC.vue for improved readability and consistency
This commit is contained in:
@@ -12,7 +12,7 @@ type ForceLogoutDetail = {
|
||||
|
||||
let forceLogoutEmitted = false
|
||||
|
||||
export function emitForceLogout (detail: ForceLogoutDetail) {
|
||||
export function emitForceLogout(detail: ForceLogoutDetail) {
|
||||
// 避免同一波大量 401 觸發多次登出流程
|
||||
if (forceLogoutEmitted) return
|
||||
forceLogoutEmitted = true
|
||||
|
||||
Reference in New Issue
Block a user