Hong

.

......@@ -70,8 +70,9 @@ function deleteFile(fileData) {
},
});
}
function downloadFile(fileData) {
return axios.get(`api/file/download/${fileData.fileName}`, {
return axios.get(`/api/file/download/${fileData.fileName}`, {
params: {
//현재 접속한 사람의 id와 다운로드를 위해 선택한 파일의 이름을 파라미터로 넘긴다.
id: fileData.id,
......@@ -79,22 +80,25 @@ function downloadFile(fileData) {
},
});
}
function accessedList(curData) {
return axios.get('api/quick', {
return axios.get('/api/quick', {
params: {
id: curData.id,
},
});
}
function modifyFile(fileData) {
return axios.post(`/api/file/modify/${fileData.name}`, fileData);
}
function delFavorite(folderData) {
return axios.post('api/favorites/delfolder', folderData);
return axios.post('/api/favorites/delfolder', folderData);
}
function addFavorite(folderData) {
return axios.post('api/favorites/addfolder', folderData);
return axios.post('/api/favorites/addfolder', folderData);
}
function moveFile(fileData) {
......@@ -102,15 +106,15 @@ function moveFile(fileData) {
}
function delFavoriteFile(fileData) {
return axios.post('api/favorites/delfile', fileData);
return axios.post('/api/favorites/delfile', fileData);
}
function addFavoriteFile(fileData) {
return axios.post('api/favorites/addfile', fileData);
return axios.post('/api/favorites/addfile', fileData);
}
function getFavoriteList(userId) {
return axios.get('api/favorites/show', {
return axios.get('/api/favorites/show', {
params: {
id: userId,
},
......
......@@ -14,9 +14,6 @@
<v-list two-line subheader>
<!-- <v-subheader inset>Folders</v-subheader> -->
<!-- Folder view -->
<v-list-item v-if="this.$store.state.cur !== '/'" @click="moveParent"
>...</v-list-item
>
<v-list-item
v-for="item in this.$store.getters.folderL"
:key="item.folder_id"
......
......@@ -14,7 +14,10 @@
<v-list two-line subheader>
<!-- <v-subheader inset>Folders</v-subheader> -->
<!-- Folder view -->
<v-list-item @click="$router.go(-1)">...</v-list-item>
<v-list-item
@click=""
@dblclick="$router.go(-1)"
>...</v-list-item>
<v-list-item
v-for="item in this.$store.getters.folderL"
:key="item.folder_id"
......