박기범

add detailFile function

......@@ -49,6 +49,14 @@ function uploadFile(fileData){
return axios.post('/api/file/upload', fileData);
}
function detailFile(fileData){
return axios.get(`/api/file/${fileData.name}`, {
params:{
id: fileData.id,
cur: fileData.cur
}
})
}
function deleteFile(fileData){
return axios.get('/api/file/delete', {
params:{
......
......@@ -207,7 +207,7 @@ import Axios from 'axios';
}
console.log(curData);
const response = await folder(curData);
const file_response = await file(curData);
const {file_response} = await file(curData);
console.log(response.data);
console.log(file_response);
this.$store.commit('setFolder', response.data.folders);
......