feat:回退操作

This commit is contained in:
许永平
2025-07-05 21:40:14 +08:00
parent 0385a4cfa9
commit 17ec8ecf25
13 changed files with 461 additions and 199 deletions

View File

@@ -110,7 +110,12 @@ export default function WechatAccountDetail() {
// 如果没有账号数据,返回上一页
useEffect(() => {
if (!currentAccount) {
navigate('/');
toast({
title: "数据错误",
description: "未找到账号信息,请重新选择",
variant: "destructive"
});
navigate('/wechat-accounts');
return;
}
}, [currentAccount, navigate, toast]);