💄 修复渲染异常

This commit is contained in:
目棃
2024-12-31 11:18:22 +08:00
parent 4cfb19dc21
commit 1350ca17df
5 changed files with 12 additions and 25 deletions

View File

@@ -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 {

View File

@@ -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);
}