diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue index 34822f1..f48bd64 100644 --- a/src/layout/components/Navbar.vue +++ b/src/layout/components/Navbar.vue @@ -290,7 +290,7 @@ export default { } } } - this.imgUrl = config.httpurl + data.userPhoto + this.imgUrl = config.fileUrl + data.userPhoto }) .catch((e) => { MessageBox.alert('登录失效,请重新登录', { @@ -444,11 +444,11 @@ export default { formData.append('FFILE', this.FFILE) upload( - '/photo/saveNew', + '/photo/save', formData ).then((data) => { this.dialogForm = false - this.imgUrl = config.httpurl + data.userPhoto + this.imgUrl = config.fileUrl + data.userPhoto loading.close() }).catch((e) => { loading.close()