Hong

.

...@@ -70,8 +70,9 @@ function deleteFile(fileData) { ...@@ -70,8 +70,9 @@ function deleteFile(fileData) {
70 }, 70 },
71 }); 71 });
72 } 72 }
73 +
73 function downloadFile(fileData) { 74 function downloadFile(fileData) {
74 - return axios.get(`api/file/download/${fileData.fileName}`, { 75 + return axios.get(`/api/file/download/${fileData.fileName}`, {
75 params: { 76 params: {
76 //현재 접속한 사람의 id와 다운로드를 위해 선택한 파일의 이름을 파라미터로 넘긴다. 77 //현재 접속한 사람의 id와 다운로드를 위해 선택한 파일의 이름을 파라미터로 넘긴다.
77 id: fileData.id, 78 id: fileData.id,
...@@ -79,22 +80,25 @@ function downloadFile(fileData) { ...@@ -79,22 +80,25 @@ function downloadFile(fileData) {
79 }, 80 },
80 }); 81 });
81 } 82 }
83 +
82 function accessedList(curData) { 84 function accessedList(curData) {
83 - return axios.get('api/quick', { 85 + return axios.get('/api/quick', {
84 params: { 86 params: {
85 id: curData.id, 87 id: curData.id,
86 }, 88 },
87 }); 89 });
88 } 90 }
91 +
89 function modifyFile(fileData) { 92 function modifyFile(fileData) {
90 return axios.post(`/api/file/modify/${fileData.name}`, fileData); 93 return axios.post(`/api/file/modify/${fileData.name}`, fileData);
91 } 94 }
95 +
92 function delFavorite(folderData) { 96 function delFavorite(folderData) {
93 - return axios.post('api/favorites/delfolder', folderData); 97 + return axios.post('/api/favorites/delfolder', folderData);
94 } 98 }
95 99
96 function addFavorite(folderData) { 100 function addFavorite(folderData) {
97 - return axios.post('api/favorites/addfolder', folderData); 101 + return axios.post('/api/favorites/addfolder', folderData);
98 } 102 }
99 103
100 function moveFile(fileData) { 104 function moveFile(fileData) {
...@@ -102,15 +106,15 @@ function moveFile(fileData) { ...@@ -102,15 +106,15 @@ function moveFile(fileData) {
102 } 106 }
103 107
104 function delFavoriteFile(fileData) { 108 function delFavoriteFile(fileData) {
105 - return axios.post('api/favorites/delfile', fileData); 109 + return axios.post('/api/favorites/delfile', fileData);
106 } 110 }
107 111
108 function addFavoriteFile(fileData) { 112 function addFavoriteFile(fileData) {
109 - return axios.post('api/favorites/addfile', fileData); 113 + return axios.post('/api/favorites/addfile', fileData);
110 } 114 }
111 115
112 function getFavoriteList(userId) { 116 function getFavoriteList(userId) {
113 - return axios.get('api/favorites/show', { 117 + return axios.get('/api/favorites/show', {
114 params: { 118 params: {
115 id: userId, 119 id: userId,
116 }, 120 },
......
...@@ -14,9 +14,6 @@ ...@@ -14,9 +14,6 @@
14 <v-list two-line subheader> 14 <v-list two-line subheader>
15 <!-- <v-subheader inset>Folders</v-subheader> --> 15 <!-- <v-subheader inset>Folders</v-subheader> -->
16 <!-- Folder view --> 16 <!-- Folder view -->
17 - <v-list-item v-if="this.$store.state.cur !== '/'" @click="moveParent"
18 - >...</v-list-item
19 - >
20 <v-list-item 17 <v-list-item
21 v-for="item in this.$store.getters.folderL" 18 v-for="item in this.$store.getters.folderL"
22 :key="item.folder_id" 19 :key="item.folder_id"
......
...@@ -14,7 +14,10 @@ ...@@ -14,7 +14,10 @@
14 <v-list two-line subheader> 14 <v-list two-line subheader>
15 <!-- <v-subheader inset>Folders</v-subheader> --> 15 <!-- <v-subheader inset>Folders</v-subheader> -->
16 <!-- Folder view --> 16 <!-- Folder view -->
17 - <v-list-item @click="$router.go(-1)">...</v-list-item> 17 + <v-list-item
18 + @click=""
19 + @dblclick="$router.go(-1)"
20 + >...</v-list-item>
18 <v-list-item 21 <v-list-item
19 v-for="item in this.$store.getters.folderL" 22 v-for="item in this.$store.getters.folderL"
20 :key="item.folder_id" 23 :key="item.folder_id"
......