최동원

.

......@@ -349,9 +349,10 @@ export default {
},
async created() {
try {
console.log(this.$route.params.id);
const curData = {
id: this.$store.state.id,
folder_id: this.folder_id,
folder_id: this.$route.params.id,
};
console.log(curData);
const response = await folder(curData);
......
......@@ -69,7 +69,7 @@ export default new VueRouter({
{
path: '/file/:id',
name: 'Folder',
component: () => import('../views/FolderPage.vue'),
component: () => import('../components/folderc'),
props: true,
},
],
......
<template>
<div>
<folderc></folderc>
<folderc v-bind:folderId="folderId"></folderc>
</div>
</template>
<script>
import folderc from '../components/folderc';
export default {
props: {
folderId: Number,
},
components: {
folderc,
},
......