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

@@ -1,6 +1,5 @@
import React, { useState, useEffect, useRef, useCallback } from 'react';
import { useNavigate } from 'react-router-dom';
import { smartGoBack } from '@/utils/navigation';
import { ChevronLeft, Search, RefreshCw, ArrowRightLeft, AlertCircle, Loader2 } from 'lucide-react';
import { fetchWechatAccountList, transformWechatAccount } from '@/api/wechat-accounts';
import { useToast } from '@/components/ui/toast';
@@ -156,7 +155,7 @@ export default function WechatAccounts() {
<div className="flex items-center px-4 py-3">
<button
className="p-2 hover:bg-gray-100 rounded-lg transition-colors"
onClick={() => smartGoBack(navigate)}
onClick={() => navigate(-1)}
>
<ChevronLeft className="h-5 w-5" />
</button>