import { useLocation, Link } from "@remix-run/react"; export default function DebugPage() { const location = useLocation(); return (

路由诊断页面

当前路径信息

          {JSON.stringify({
            pathname: location.pathname,
            search: location.search,
            hash: location.hash,
            key: location.key,
            state: location.state
          }, null, 2)}
        

测试链接

首页 - / 评查点列表 - /rules 评查点详情 - /rules/1 原生链接 - /rules

跳转测试

); }