efbdf7031e
Project CI / AI game creator shell Rust crates (push) Successful in 1m30s
Project CI / AI game creator shell Rust smoke (push) Successful in 1m57s
Project CI / Backend tests (push) Successful in 3m54s
Project CI / Frontend tests (push) Successful in 2m5s
Project CI / Native shell tests (push) Successful in 6m4s
Project CI / AI game creator shell Rust lane 2/2 (push) Successful in 8m14s
Project CI / AI game creator shell Rust lane 1/2 (push) Successful in 9m19s
Project CI / AI game creator shell web tests (push) Successful in 1m23s
Project CI / Repository checks (push) Successful in 1m55s
客户端维护响应统一识别并广播维护事件 AGC 与网页端根部展示维护大弹窗,收口发布、上传、资源换签和登录错误 补充维护态弹窗测试、类型检查与实施计划说明
16 lines
409 B
TypeScript
16 lines
409 B
TypeScript
export const CLIENT_MAINTENANCE_EVENT =
|
|
'genarrative-client-maintenance-detected';
|
|
|
|
export type ClientMaintenanceDetail = {
|
|
code?: string;
|
|
status?: number | null;
|
|
requestId?: string;
|
|
};
|
|
|
|
export function emitClientMaintenanceEvent(
|
|
detail: ClientMaintenanceDetail = {},
|
|
) {
|
|
if (typeof window === 'undefined') return;
|
|
window.dispatchEvent(new CustomEvent(CLIENT_MAINTENANCE_EVENT, { detail }));
|
|
}
|