西海岸bug修复

This commit is contained in:
wuhongjian 2022-07-18 17:29:28 +08:00
parent a35a885b2f
commit 027409b123
2 changed files with 7 additions and 3 deletions

View File

@ -912,6 +912,10 @@
background: url('~@/assets/home/rhfw_square.png') no-repeat;
background-size: 100%;
}
.jcss {
background: url('~@/assets/home/sxt_square.png') no-repeat;
background-size: 100%;
}
.header {
display: flex;
justify-content: space-between;

View File

@ -2,7 +2,7 @@
* @Author: hisense.wuhongjian
* @Date: 2022-04-19 17:18:48
* @LastEditors: hisense.wuhongjian
* @LastEditTime: 2022-07-16 15:01:48
* @LastEditTime: 2022-07-18 16:40:21
* @Description: markdown编辑器
-->
<template>
@ -95,12 +95,12 @@
if (this.uuidSnum === '') {
this.uuidSplice()
}
let myfile = new File([blob], this.uuidSnum)
let myfile = new File([blob], this.uuidSnum + '.md')
var formData = new FormData()
const type = pinyin(this.dataFrom.type, {
pattern: 'initial',
}).replace(/\s*/g, '')
formData.append('fileName', this.uuidSnum)
formData.append('fileName', this.uuidSnum + '.md')
formData.append('type', type)
formData.append('file', myfile) // 'file' HTTP Post, file File
// formData.append('name', this.route.currentRoute.query.id + '.md')