技术文档bug

This commit is contained in:
851673013@qq.com 2022-07-12 17:08:58 +08:00
parent f593a97854
commit 57df5fe220
1 changed files with 4 additions and 3 deletions

View File

@ -24,7 +24,7 @@
import * as fontJs from '/public/static/js/font.js' import * as fontJs from '/public/static/js/font.js'
import { filesUpload } from '@/api/personalCenter' import { filesUpload } from '@/api/personalCenter'
import mybus from '@/myplugins/mybus' import mybus from '@/myplugins/mybus'
let text = '' let text = ref('')
let iconfontJs = fontJs let iconfontJs = fontJs
const props = defineProps({ const props = defineProps({
data: { type: Array, default: null }, data: { type: Array, default: null },
@ -44,11 +44,12 @@
// formData.append('name', this.route.currentRoute.query.id + '.md') // formData.append('name', this.route.currentRoute.query.id + '.md')
// FileSaver.saveAs(blob, '.md') // FileSaver.saveAs(blob, '.md')
filesUpload(formData).then((resData) => { filesUpload(formData).then((resData) => {
const res = resData const res = resData.data.data
text.value = res
mybus.emit('showTextFunctionEmit', false) mybus.emit('showTextFunctionEmit', false)
let infoList = ref({ let infoList = ref({
attrType: '技术文档', attrType: '技术文档',
attrValue: res.data.data, attrValue: res,
delFlag: 0, delFlag: 0,
}) })
mybus.emit('chageDataFrom', infoList.value) mybus.emit('chageDataFrom', infoList.value)