|
@@ -596,7 +596,11 @@ export default {
|
|
|
},
|
|
},
|
|
|
onMoveToFolder() {
|
|
onMoveToFolder() {
|
|
|
moveFile(this.moveFileForm).then(resp => {
|
|
moveFile(this.moveFileForm).then(resp => {
|
|
|
- this.$message.info(resp.msg)
|
|
|
|
|
|
|
+ if (resp.code === 0) {
|
|
|
|
|
+ this.$router.go(0)
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.$message.error(resp.msg)
|
|
|
|
|
+ }
|
|
|
}).catch(error => {
|
|
}).catch(error => {
|
|
|
this.$message.info(error.message)
|
|
this.$message.info(error.message)
|
|
|
})
|
|
})
|