mirror of
https://github.com/doocs/md.git
synced 2024-11-28 13:36:32 +08:00
fix: resolve upload method
This commit is contained in:
parent
7aae308859
commit
4d32dfa2b3
@ -131,7 +131,7 @@ export default {
|
|||||||
data.append('file', pasteFile)
|
data.append('file', pasteFile)
|
||||||
|
|
||||||
fileApi.fileUpload(data).then(res => {
|
fileApi.fileUpload(data).then(res => {
|
||||||
this.uploaded(resp.data)
|
this.uploaded(res)
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
console.log(err.message)
|
console.log(err.message)
|
||||||
})
|
})
|
||||||
|
@ -92,7 +92,6 @@ export default {
|
|||||||
output: state=> state.output,
|
output: state=> state.output,
|
||||||
editor: state=> state.editor,
|
editor: state=> state.editor,
|
||||||
cssEditor: state=> state.cssEditor,
|
cssEditor: state=> state.cssEditor,
|
||||||
html: state=> state.html,
|
|
||||||
currentFont: state=> state.currentFont,
|
currentFont: state=> state.currentFont,
|
||||||
currentSize: state=> state.currentSize,
|
currentSize: state=> state.currentSize,
|
||||||
currentColor: state=> state.currentColor
|
currentColor: state=> state.currentColor
|
||||||
|
@ -52,9 +52,9 @@ export default {
|
|||||||
|
|
||||||
let table = ''
|
let table = ''
|
||||||
for (let i = 0; i < rows + 2; ++i) {
|
for (let i = 0; i < rows + 2; ++i) {
|
||||||
for (let j = 0; j < cols + 1; ++j) {
|
for (let j = 0; j < cols + 1; ++j) {
|
||||||
table += (j === 0 ? '|' : (i !== 1 ? ' |' : ' --- |'))
|
table += (j === 0 ? '|' : (i !== 1 ? ' |' : ' --- |'))
|
||||||
}
|
}
|
||||||
table += '\n'
|
table += '\n'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user