技术文档bug
This commit is contained in:
parent
f593a97854
commit
57df5fe220
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue