mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2026-03-30 06:19:45 +08:00
💄 修复渲染异常
This commit is contained in:
@@ -110,7 +110,7 @@ const skills = computed<Array<TGApp.Game.Avatar.Skill>>(() =>
|
||||
);
|
||||
const nameCard = computed<string>(() => {
|
||||
const cardFind = TSUserAvatar.getAvatarCard(props.modelValue.avatar.id);
|
||||
return `/source/nameCard/profile/${cardFind}.webp`;
|
||||
return `/WIKI/nameCard/profile/${cardFind}.webp`;
|
||||
});
|
||||
|
||||
function getWeaponTitle(): string {
|
||||
|
||||
@@ -99,7 +99,7 @@ const propMain = computed<Array<TGApp.Game.Avatar.PropMapItem | false>>(() =>
|
||||
props.modelValue.propSelected.map((item) => userStore.getProp(item.property_type)),
|
||||
);
|
||||
|
||||
const bg = ref<string>("/source/nameCard/profile/原神·印象.webp");
|
||||
const bg = ref<string>("/WIKI/nameCard/profile/原神·印象.webp");
|
||||
const avatar = ref<string>(props.modelValue.avatar.image);
|
||||
const loading = ref<boolean>(false);
|
||||
|
||||
@@ -126,7 +126,7 @@ watch(
|
||||
|
||||
async function loadData(): Promise<void> {
|
||||
const card = TSUserAvatar.getAvatarCard(props.modelValue.cid);
|
||||
bg.value = `url("/source/nameCard/profile/${card}.webp")`;
|
||||
bg.value = `url("/WIKI/nameCard/profile/${card}.webp")`;
|
||||
if (!avatar.value.startsWith("blob:")) {
|
||||
avatar.value = await saveImgLocal(props.modelValue.avatar.image);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user