From 464fab3e2a96e8c2d46d7f28f719114e33e62f8f Mon Sep 17 00:00:00 2001 From: hcj Date: Fri, 5 Jul 2024 17:59:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=95=99=E5=B8=88=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E7=85=A7=E7=89=87=E9=A2=84=E8=A7=88=E3=80=81=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E5=AF=86=E7=A0=81=E6=B7=BB=E5=8A=A0=E5=8A=A0=E5=AF=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 2 +- src/components/ImageUpload/index.vue | 6 +++++- src/views/system/user/profile/resetPwd.vue | 2 +- src/views/trainService/trainTeacher.vue | 6 +++--- 4 files changed, 10 insertions(+), 6 deletions(-) diff --git a/.env.development b/.env.development index 361bff0..32f1e1f 100644 --- a/.env.development +++ b/.env.development @@ -5,7 +5,7 @@ ENV = 'development' VUE_APP_BASE_API = '/prod-api' # VUE_APP_BASE_TARGET = 'http://www.bjkeyware.com/test-api' -VUE_APP_BASE_TARGET = 'http://192.168.0.230:9999' +VUE_APP_BASE_TARGET = 'http://192.168.0.229:9999' # VUE_APP_BASE_TARGET = 'http://192.168.0.129:9999' # VUE_APP_BASE_TARGET = 'http://172.16.36.180:9999' diff --git a/src/components/ImageUpload/index.vue b/src/components/ImageUpload/index.vue index 0c1484a..080f265 100644 --- a/src/components/ImageUpload/index.vue +++ b/src/components/ImageUpload/index.vue @@ -16,6 +16,7 @@ +
@@ -31,7 +32,7 @@
- +
@@ -56,6 +57,9 @@ export default { default: '', }, }, + mounted(){ + console.log(this.value); + }, methods: { removeImage() { this.$emit('input', '') diff --git a/src/views/system/user/profile/resetPwd.vue b/src/views/system/user/profile/resetPwd.vue index 46480dc..8373460 100644 --- a/src/views/system/user/profile/resetPwd.vue +++ b/src/views/system/user/profile/resetPwd.vue @@ -57,7 +57,7 @@ export default { if (valid) { // updateUserPwd(encrypt(this.user.oldPassword), encrypt(this.user.newPassword)).then( - updateUserPwd(this.user.oldPassword, this.user.newPassword).then( + updateUserPwd(encrypt(this.user.oldPassword),encrypt(this.user.newPassword)).then( response => { this.msgSuccess("修改成功"); } diff --git a/src/views/trainService/trainTeacher.vue b/src/views/trainService/trainTeacher.vue index 623972b..f67eec9 100644 --- a/src/views/trainService/trainTeacher.vue +++ b/src/views/trainService/trainTeacher.vue @@ -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()