|
|
|
@ -109,7 +109,7 @@ export default { |
|
|
|
|
components: { ImageUpload }, |
|
|
|
|
data() { |
|
|
|
|
return { |
|
|
|
|
imgbase: process.env.VUE_APP_BASE_TARGET, |
|
|
|
|
imgbase: process.env.VUE_APP_BASE_API, |
|
|
|
|
loading: false, |
|
|
|
|
schoolList: [], |
|
|
|
|
// 总条数 |
|
|
|
@ -151,7 +151,8 @@ export default { |
|
|
|
|
detailTalent(row.talentId).then((res) => { |
|
|
|
|
this.form = res |
|
|
|
|
if (this.form.avatar) { |
|
|
|
|
this.form.avatar = this.imgbase + this.form.avatar |
|
|
|
|
// this.imgbase + |
|
|
|
|
this.form.avatar = this.form.avatar |
|
|
|
|
} |
|
|
|
|
this.title = '修改教师' |
|
|
|
|
this.visibleopen = true |
|
|
|
@ -180,7 +181,6 @@ export default { |
|
|
|
|
const url = this.form.avatar |
|
|
|
|
const index = url.indexOf('/profile') |
|
|
|
|
this.form.avatar = url.substring(index) |
|
|
|
|
console.log(this.form) |
|
|
|
|
updateTeacher(this.form).then((res) => { |
|
|
|
|
this.$message.success('修改成功') |
|
|
|
|
this.colsedia() |
|
|
|
|