From 57df5fe2206170aeffd4a55e8abb85989a30d9a0 Mon Sep 17 00:00:00 2001 From: "851673013@qq.com" <851673013@qq.com> Date: Tue, 12 Jul 2022 17:08:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=80=E6=9C=AF=E6=96=87=E6=A1=A3bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front/src/views/capacityOnTheShelf/FilesUpload.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/front/src/views/capacityOnTheShelf/FilesUpload.vue b/front/src/views/capacityOnTheShelf/FilesUpload.vue index 9140988c..6f059550 100644 --- a/front/src/views/capacityOnTheShelf/FilesUpload.vue +++ b/front/src/views/capacityOnTheShelf/FilesUpload.vue @@ -24,7 +24,7 @@ import * as fontJs from '/public/static/js/font.js' import { filesUpload } from '@/api/personalCenter' import mybus from '@/myplugins/mybus' - let text = '' + let text = ref('') let iconfontJs = fontJs const props = defineProps({ data: { type: Array, default: null }, @@ -44,11 +44,12 @@ // formData.append('name', this.route.currentRoute.query.id + '.md') // FileSaver.saveAs(blob, '开发指南.md') filesUpload(formData).then((resData) => { - const res = resData + const res = resData.data.data + text.value = res mybus.emit('showTextFunctionEmit', false) let infoList = ref({ attrType: '技术文档', - attrValue: res.data.data, + attrValue: res, delFlag: 0, }) mybus.emit('chageDataFrom', infoList.value)