Skip to content

Commit

Permalink
feat: optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
tianqing617 committed Nov 12, 2021
1 parent 6f6c5c5 commit f5b31b8
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions src/components/playGround/PlayGround.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,13 @@ import Food from './Food'
export default {
name: 'PlayGround',
setup (): Record<string, unknown> {
setup (): void {
let food: Food
onMounted(() => {
food = new Food()
console.log('food', food);
})
// 测试方法
function test (): void {
food.changeLocation()
console.log('foodLoc', food.loctionX, food.locationY)
}
return {
test,
}
}
}
</script>
Expand Down

0 comments on commit f5b31b8

Please sign in to comment.