ソースを参照

食物号码调整

wangxy 4 ヶ月 前
コミット
f46a4297f3
1 ファイル変更3 行追加2 行削除
  1. 3 2
      pages/game/components/goose.vue

+ 3 - 2
pages/game/components/goose.vue

@@ -11,7 +11,7 @@
 	import upLineProgress from "uview-plus/components/u-line-progress/u-line-progress.vue";  
 	
 	const props = defineProps({
-		grouthType: {
+    growthType: {
 			type: [String,Number]
 		},
 		progress: {
@@ -21,7 +21,8 @@
 	})
 	
 	const imgUrl = computed(() => {
-		const active = gooseGrowthTypeList.find(item => item.grouthType == props.grouthType)
+		const active = gooseGrowthTypeList.find(item => item.grouthType == props.growthType)
+    console.log(active,props.growthType,props.progress)
 		return active ? active.imgUrl: ''
 	})
 </script>