update pay ui

This commit is contained in:
2025-12-14 08:17:42 +08:00
parent 1471bf806a
commit dd963f297c
2 changed files with 27 additions and 2 deletions

View File

@@ -0,0 +1,22 @@
// src/views/Landing/index.js
// Landing 页面 - 重定向到静态 landing.html
import { useEffect } from 'react';
/**
* Landing 组件
*
* 作用:将用户从 React SPA 重定向到静态 landing.html 页面
*
* 为什么使用 window.location.replace
* - 不会在浏览历史中留下记录(用户点后退不会回到空白页)
* - 直接跳转到静态 HTML不需要 React 渲染
*/
export default function Landing() {
useEffect(() => {
// 直接跳转到 landing.html不留浏览历史
window.location.replace('/landing.html');
}, []);
// 返回 null因为会立即跳转
return null;
}