新增通道列表查询页面
This commit is contained in:
@@ -52,7 +52,7 @@ export default function Navbar(props: NavbarProps) {
|
||||
<NavItem href={`/admin/resources`} icon={`📦`} label={`套餐管理`}/>
|
||||
<NavTitle label={`IP 管理`}/>
|
||||
<NavItem href={`/admin/extract`} icon={`📤`} label={`提取 IP`}/>
|
||||
<NavItem href={`/admin`} icon={`👁️`} label={`IP 管理`}/>
|
||||
<NavItem href={`/admin/channels`} icon={`👁️`} label={`IP 管理`}/>
|
||||
<NavItem href={`/admin`} icon={`📜`} label={`提取记录`}/>
|
||||
<NavItem href={`/admin`} icon={`🗂️`} label={`使用记录`}/>
|
||||
</section>
|
||||
|
||||
@@ -9,19 +9,10 @@ export type ProfileProps = {}
|
||||
|
||||
export default function Profile(props: ProfileProps) {
|
||||
const refreshProfile = useProfileStore(store => store.refreshProfile)
|
||||
const router = useRouter()
|
||||
const doLogout = async () => {
|
||||
try {
|
||||
const resp = await logout()
|
||||
if (resp.success) {
|
||||
await refreshProfile()
|
||||
router.push('/')
|
||||
}
|
||||
}
|
||||
catch (e) {
|
||||
toast.error('退出登录失败', {
|
||||
description: (e as Error).message,
|
||||
})
|
||||
const resp = await logout()
|
||||
if (resp.success) {
|
||||
await refreshProfile()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user