相框获取字段修改
This commit is contained in:
@@ -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);
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user