mirror of
https://github.com/continew-org/continew-admin.git
synced 2025-11-07 02:57:13 +08:00
style: 解决启动时部分行分隔符报 warning 的问题
来自 @woodlxl(小鹿)
This commit is contained in:
@@ -2,7 +2,10 @@ import Unknown from '../assets/images/avatar/unknown.png';
|
||||
import Male from '../assets/images/avatar/male.png';
|
||||
import Female from '../assets/images/avatar/female.png';
|
||||
|
||||
export default function getAvatar(avatar: string | undefined, gender: number | undefined) {
|
||||
export default function getAvatar(
|
||||
avatar: string | undefined,
|
||||
gender: number | undefined
|
||||
) {
|
||||
if (avatar) {
|
||||
const baseUrl = import.meta.env.VITE_API_BASE_URL;
|
||||
return `${baseUrl}/avatar/${avatar}`;
|
||||
|
||||
Reference in New Issue
Block a user