Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2020-1-CloudComputing
/
D_Team_Khuloud
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
박기범
2020-05-30 17:09:24 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
4201e2468615a6a822dc069f16b8a878c988efe3
4201e246
1 parent
e19dfcc7
add detailFile function
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletions
front-end/src/api/index.js
front-end/src/components/FileList.vue
front-end/src/api/index.js
View file @
4201e24
...
...
@@ -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
:{
...
...
front-end/src/components/FileList.vue
View file @
4201e24
...
...
@@ -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);
...
...
Please
register
or
login
to post a comment