19 lines
785 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { useEffect } from "react";
export const LUCKY_GIFT_OPS_CENTER_PATH = "/ops-center/?view=configs";
export function redirectToLuckyGiftOpsCenter(targetLocation = window.location) {
// Ops Center 是独立 HTML 入口React Router 的 SPA Navigate 会落回主后台兜底路由;
// 必须触发文档级导航,才能加载新版跨 App 配置页并避免旧页面调用已下线的 activity/v2 接口。
targetLocation.replace(LUCKY_GIFT_OPS_CENTER_PATH);
}
export function LuckyGiftConfigPage() {
useEffect(() => {
redirectToLuckyGiftOpsCenter();
}, []);
// 文档跳转通常立即完成;保留可读状态,供慢网络和辅助技术明确当前动作。
return <p role="status">正在打开新版幸运礼物配置</p>;
}