From 8661466a7659e281b7059646d1ecb10ee9ae65cb Mon Sep 17 00:00:00 2001 From: liy <3101763317@qq.com> Date: Thu, 20 Jun 2024 10:48:10 +0800 Subject: [PATCH] li --- src/layout/components/Navbar.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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()