app.uploadStatus.percentDone = 0;
asyncForEach(files, function (file, callback) {
- var path = encode(sanitize(app.path + '/' + file.name));
+ var path = encode(sanitize(app.path + '/' + (file.webkitRelativePath || file.name)));
var formData = new FormData();
formData.append('file', file);
refresh();
});
- }).catch(function () {
- console.log('delete error:', arguments);
- });
+ }).catch(function () {});
},
onRename: function (entry) {
var that = this;
refresh();
});
- }).catch(function (error) {
- that.$message.error(error.message);
- });
+ }).catch(function () {});
},
onNewFolder: function () {
var that = this;
refresh();
});
- }).catch(function (error) {
- that.$message.error(error.message);
- });
+ }).catch(function () {});
},
prettyDate: function (row, column, cellValue, index) {
var date = new Date(cellValue),