相框获取字段修改

This commit is contained in:
kron
2025-07-14 15:13:10 +08:00
parent e685383581
commit 1de8ba6d9d
7 changed files with 29 additions and 33 deletions

View File

@@ -10,7 +10,7 @@ const props = defineProps({
type: String,
default: "",
},
score: {
rankLvl: {
type: Number,
default: undefined,
},
@@ -33,10 +33,10 @@ const props = defineProps({
});
const avatarFrame = ref("");
watch(
() => [config.value, props.score],
() => [config.value, props.rankLvl],
() => {
if (props.score !== undefined) {
avatarFrame.value = getLvlImage(props.score);
if (props.rankLvl !== undefined) {
avatarFrame.value = getLvlImage(props.rankLvl);
}
},
{