Showing
1 changed file
with
4 additions
and
4 deletions
... | @@ -514,12 +514,12 @@ export default { | ... | @@ -514,12 +514,12 @@ export default { |
514 | try { | 514 | try { |
515 | const cData = { | 515 | const cData = { |
516 | id: this.$store.state.id, | 516 | id: this.$store.state.id, |
517 | - cur: this.$store.state.cur, | 517 | + cur: this.curfName.location, |
518 | name: this.curfName.folder_name, | 518 | name: this.curfName.folder_name, |
519 | }; | 519 | }; |
520 | console.log(cData); | 520 | console.log(cData); |
521 | const response = await delFavorite(cData); | 521 | const response = await delFavorite(cData); |
522 | - this.$store.commit('setFolder', response.data.folders); | 522 | + this.$store.commit('setfavFolderList', response.data.folders); |
523 | } catch (error) { | 523 | } catch (error) { |
524 | console.log('에러'); | 524 | console.log('에러'); |
525 | } | 525 | } |
... | @@ -542,12 +542,12 @@ export default { | ... | @@ -542,12 +542,12 @@ export default { |
542 | try { | 542 | try { |
543 | const fData = { | 543 | const fData = { |
544 | id: this.$store.state.id, | 544 | id: this.$store.state.id, |
545 | - cur: this.$store.state.cur, | 545 | + cur: this.cfilename.location, |
546 | name: this.cfilename.file_name, | 546 | name: this.cfilename.file_name, |
547 | }; | 547 | }; |
548 | console.log(fData); | 548 | console.log(fData); |
549 | const response = await delFavoriteFile(fData); | 549 | const response = await delFavoriteFile(fData); |
550 | - this.$store.commit('setFile', response.data.files); | 550 | + this.$store.commit('setfavFileList', response.data.files); |
551 | } catch (error) { | 551 | } catch (error) { |
552 | console.log('에러'); | 552 | console.log('에러'); |
553 | } | 553 | } | ... | ... |
-
Please register or login to post a comment