From 1eab54dbe23a6b113ec1a0ffc5cd80103dbf606d Mon Sep 17 00:00:00 2001 From: wyx Date: Fri, 24 Feb 2023 18:37:29 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E8=AF=81=E4=B9=A6=E4=B8=8A=E4=BC=A0?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0upload?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/drawers/project/AddCertificate.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/drawers/project/AddCertificate.vue b/src/components/drawers/project/AddCertificate.vue index 2aa0b3f5..3b0c8f27 100644 --- a/src/components/drawers/project/AddCertificate.vue +++ b/src/components/drawers/project/AddCertificate.vue @@ -501,8 +501,8 @@ export default { fileUp(formDatas).then((res) => { if (res.data.code === 200) { console.log(file) - state.imageUrl = res.data.data; - state.imageName = file.name; + state.imageUrl = process.env.VUE_APP_FILE_PATH + res.data.data; + state.imageName = process.env.VUE_APP_FILE_PATH + file.name; } }); return false;