chore: replace all cn comments of fe to en version by volc api (#320)

This commit is contained in:
tecvan
2025-07-31 10:32:15 +08:00
committed by GitHub
parent 716ec0cba8
commit 71f6245a01
2960 changed files with 15545 additions and 15545 deletions

View File

@@ -16,14 +16,14 @@
import { useLocation } from 'react-router-dom';
/** 清空认证数据的路由参数 */
/** Clear the routing parameters of the authentication data */
export const resetAuthLoginDataFromRoute = () => {
window.history.replaceState({}, '');
};
export function useResetLocationState() {
const location = useLocation();
return () => {
// 清空location的state
// Clear the state of the location
location.state = {};
resetAuthLoginDataFromRoute();
};