|
|
@@ -324,6 +324,7 @@ export default {
|
|
|
console.log('res1111', res)
|
|
|
this.$message.success('操作成功!');
|
|
|
this.addDialog = false
|
|
|
+ this.app.refresh()
|
|
|
}).catch(err => {})
|
|
|
}
|
|
|
})
|
|
|
@@ -490,6 +491,12 @@ export default {
|
|
|
let index = this.itemClassList.findIndex((e) => e.id == res.classId)
|
|
|
this.replaceForm = res
|
|
|
this.replaceForm.className = this.itemClassList[index].name
|
|
|
+ console.log(this.replaceForm.cover)
|
|
|
+ if(this.replaceForm.cover.indexOf('http') != -1 && this.replaceForm.cover.indexOf('/uploads') != -1) {
|
|
|
+ let str = this.replaceForm.cover
|
|
|
+ let str1 = str.substring(0, str.indexOf("/uploads"));
|
|
|
+ this.replaceForm.cover = str.substring(str1.length+1, str.length);
|
|
|
+ }
|
|
|
})
|
|
|
},
|
|
|
changeSort (d, type) {
|