working better
Former-commit-id: 682c7d56814a3c9a35fcf55b540e470b5c66d890 [formerly a603a591938ec8edbe3f703772f86ba978ff92de] [formerly 6d1a11fdeb5d3a00c202e125a0873b263a3787cf [formerly 12c466d2aafbd07bea83352c03d0ad19347dbea3]] Former-commit-id: 4f43bbf0b4f91a9528cdf881f4abbdfc098b82cd [formerly 7fc1e010ac54107ff03762ad729ed54beccca02c] Former-commit-id: 4d464034e98aefbdce39d142a30bf34aa3fd2d2e
This commit is contained in:
@@ -28,8 +28,7 @@
|
||||
import { mapMutations, mapGetters, mapState } from 'vuex'
|
||||
import filesize from 'filesize'
|
||||
import moment from 'moment'
|
||||
import webdav from '@/utils/webdav.js'
|
||||
import page from '@/utils/page.js'
|
||||
import api from '@/utils/api'
|
||||
|
||||
export default {
|
||||
name: 'item',
|
||||
@@ -87,11 +86,13 @@ export default {
|
||||
let url = this.req.items[i].url
|
||||
let name = this.req.items[i].name
|
||||
|
||||
promises.push(webdav.move(url, this.url + encodeURIComponent(name)))
|
||||
promises.push(api.move(url, this.url + encodeURIComponent(name)))
|
||||
}
|
||||
|
||||
Promise.all(promises)
|
||||
.then(() => page.reload())
|
||||
.then(() => {
|
||||
// page.reload()
|
||||
})
|
||||
.catch(error => console.log(error))
|
||||
},
|
||||
click: function (event) {
|
||||
|
||||
Reference in New Issue
Block a user