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)