박기범

merge

......@@ -14,7 +14,7 @@
<tbody>
<tr v-for="item in recent_list" :key="item.name">
<td>{{ item.file_id }}</td>
<td>{{ item.file_name}}</td>
<td>{{ item.file_name }}</td>
<td>{{ item.location }}</td>
<td>{{ item.date }}</td>
</tr>
......@@ -26,34 +26,31 @@
</template>
<script>
import { accessedList } from '../api/index';
import Axios from 'axios';
export default {
import { accessedList } from '../api/index';
import Axios from 'axios';
export default {
data() {
return {
recent_list : []
}
recent_list: [],
};
},
async created(){
async created() {
try {
const curData = {
id : this.$store.state.id,
}
id: this.$store.state.id,
};
console.log(curData);
const list_reponse = await accessedList(curData);
this.$store.commit('setRecentList', list_reponse.data)
this.$store.commit('setRecentList', list_reponse.data);
this.recent_list = this.$store.getters.recentL;
console.log(this.$store.getters.recentL);
} catch (error) {
console.log("에러");
console.log('에러');
console.log(error);
}
},
methods:{
}
}
methods: {},
};
</script>
<style lang="css" scoped>
</style>
<style lang="css" scoped></style>
......