mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-13 00:10:27 +00:00
feat: 新版webui
This commit is contained in:
13
napcat.webui/src/utils/qq.ts
Normal file
13
napcat.webui/src/utils/qq.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import type { QQItem } from '@/components/quick_login'
|
||||
|
||||
/**
|
||||
* 判断 QQ 快速登录列表项是否为 QQ 信息
|
||||
* @param data QQ 快速登录列表项
|
||||
* @returns 是否为 QQ 信息
|
||||
* @description 用于判定 QQ 快速登录列表项是否为 QQ 信息
|
||||
*/
|
||||
export const isQQQuickNewItem = (
|
||||
data?: QQItem | LoginListItem | null
|
||||
): data is LoginListItem => {
|
||||
return !!data && 'nickName' in data && 'faceUrl' in data
|
||||
}
|
||||
Reference in New Issue
Block a user