mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-12 09:18:14 +08:00
💄 调整UI
This commit is contained in:
@@ -295,6 +295,17 @@ export function getGameId(mini: string): string {
|
||||
return game ? game.gid : "0";
|
||||
}
|
||||
|
||||
/**
|
||||
* @description 根据id获取游戏图标
|
||||
* @since Beta v0.6.8
|
||||
* @param {number|string} gid
|
||||
* @returns {string|undefined}
|
||||
*/
|
||||
export function getGameIcon(gid: number | string): string | undefined {
|
||||
const game = TGConstant.BBS.CHANNELS.find((item) => item.gid === gid.toString());
|
||||
return game ? game.icon : undefined;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description 根据id获取对应角色/武器数据
|
||||
* @since Beta v0.6.8
|
||||
|
||||
Reference in New Issue
Block a user