From b30bf6849e947aec91e6279b84e63cfe89507c18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=9C=E7=AC=99=E6=AD=8C?= <2277317060@qq.com> Date: Tue, 4 Apr 2023 11:40:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=9B=BE=E7=89=87=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/views/feedback/feedback/index.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ruoyi-ui/src/views/feedback/feedback/index.vue b/ruoyi-ui/src/views/feedback/feedback/index.vue index ab0e535..2e7a5fa 100644 --- a/ruoyi-ui/src/views/feedback/feedback/index.vue +++ b/ruoyi-ui/src/views/feedback/feedback/index.vue @@ -35,10 +35,10 @@ const {t} = useI18n(); const locale = (Cookies.get('language') || 'zhCn') === 'zhCn' const {proxy} = getCurrentInstance(); const {sys_normal_disable} = proxy.useDict("sys_normal_disable"); -const imageUrl = ref('http://localhost/dev-api/profile/avatar/2023/04/04/xy_logo_mini_20230404112436A006.png') +const imageUrl = ref('') const form = reactive({ - name: '', + imgUrl: '', }) const onSubmit = () => { @@ -50,6 +50,8 @@ const requestUpload = (e) => { formData.append("avatarfile", e.file); uploadImg(formData).then(response => { console.log(response) + form.value.imgUrl = response.imgUrl + imageUrl.value = import.meta.env.VITE_APP_BASE_API+response.imgUrl }); }