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