🐛 修复渲染异常

This commit is contained in:
目棃
2024-09-28 21:55:54 +08:00
parent af499c8494
commit 14a15ab4fd
2 changed files with 1 additions and 9 deletions

View File

@@ -36,10 +36,6 @@ const box = computed<TItemBoxData>(() => {
});
onMounted(async () => {
// 如果是 10000005或 10000007就是主角
if (props.modelValue === "10000005" || props.modelValue === "10000007") {
return;
}
avatar.value = AppCharacterData.find((a) => a.id === props.modelValue)!;
avatar.value = AppCharacterData.find((a) => a.id.toString() === props.modelValue.toString())!;
});
</script>

View File

@@ -41,10 +41,6 @@ const box = computed<TItemBoxData>(() => {
});
onMounted(async () => {
// 如果是 10000005或 10000007就是主角
if (props.modelValue.Item === 10000005 || props.modelValue.Item === 10000007) {
return;
}
avatar.value = AppCharacterData.find((a) => a.id === props.modelValue.Item);
});
</script>