26 lines
688 B
TypeScript
26 lines
688 B
TypeScript
import { redirect, type LoaderFunctionArgs, type MetaFunction } from "@remix-run/node";
|
|
|
|
export const meta: MetaFunction = () => {
|
|
return [
|
|
{ title: "规则管理 - 中国烟草AI合同及卷宗审核系统" },
|
|
{
|
|
name: "rules-sets",
|
|
content: "兼容旧版规则管理入口,自动跳转到新版规则维护页"
|
|
}
|
|
];
|
|
};
|
|
|
|
export const handle = {
|
|
hideBreadcrumb: true,
|
|
};
|
|
|
|
export async function loader({ request }: LoaderFunctionArgs) {
|
|
const url = new URL(request.url);
|
|
const query = url.searchParams.toString();
|
|
throw redirect(query ? `/rulesTest/list?${query}` : "/rulesTest/list");
|
|
}
|
|
|
|
export default function RulesSetsRedirect() {
|
|
return null;
|
|
}
|