<template>
<div style="padding: 10px">
<h4>팔로워</h4>
<input placeholder="?" />
<div class="post-header">
<div
class="profile"
:style="background-image:url(${ax[0].image})
"
></div>
<span class="profile-name"></span>
</div>
</div>
</template>
<script>
import axios from "axios";
export default {
name: "mypage",
data() {
return {
ax: [],
};
},
created() {
axios.get("/follower.json").then((e) => {
this.ax = e.data;
console.log(this.ax);
});
},
};
</script>
<style>
</style>
마운티드로도 해봣는데 runtime-core.esm-bundler.js?5c40:6800 Uncaught TypeError: Cannot read properties of undefined (reading 'image') 오류뜨면서 화면안나오네요.. 뭐가 문제일까요..