|
|
@@ -25,6 +25,12 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
watch: {
|
|
|
+ info: {
|
|
|
+ handler(val) {
|
|
|
+ this.folderInfo = val
|
|
|
+ },
|
|
|
+ immediate: true
|
|
|
+ },
|
|
|
rename: {
|
|
|
handler(val) {
|
|
|
if (val) {
|
|
|
@@ -36,13 +42,11 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
- title: ''
|
|
|
+ title: '',
|
|
|
+ folderInfo: null
|
|
|
}
|
|
|
},
|
|
|
|
|
|
- created() {
|
|
|
- this.folderInfo = this.info
|
|
|
- },
|
|
|
methods: {
|
|
|
folderAdd() {
|
|
|
const data = {
|
|
|
@@ -69,7 +73,7 @@ export default {
|
|
|
this.title = ''
|
|
|
this.$emit('close')
|
|
|
} else {
|
|
|
- this.$message.error(res.msg)
|
|
|
+ this.$message.error(res.data)
|
|
|
}
|
|
|
})
|
|
|
}
|