박기범

add detailFile function

...@@ -49,6 +49,14 @@ function uploadFile(fileData){ ...@@ -49,6 +49,14 @@ function uploadFile(fileData){
49 return axios.post('/api/file/upload', fileData); 49 return axios.post('/api/file/upload', fileData);
50 } 50 }
51 51
52 +function detailFile(fileData){
53 + return axios.get(`/api/file/${fileData.name}`, {
54 + params:{
55 + id: fileData.id,
56 + cur: fileData.cur
57 + }
58 + })
59 +}
52 function deleteFile(fileData){ 60 function deleteFile(fileData){
53 return axios.get('/api/file/delete', { 61 return axios.get('/api/file/delete', {
54 params:{ 62 params:{
......
...@@ -207,7 +207,7 @@ import Axios from 'axios'; ...@@ -207,7 +207,7 @@ import Axios from 'axios';
207 } 207 }
208 console.log(curData); 208 console.log(curData);
209 const response = await folder(curData); 209 const response = await folder(curData);
210 - const file_response = await file(curData); 210 + const {file_response} = await file(curData);
211 console.log(response.data); 211 console.log(response.data);
212 console.log(file_response); 212 console.log(file_response);
213 this.$store.commit('setFolder', response.data.folders); 213 this.$store.commit('setFolder', response.data.folders);
......