|
|
|
@ -65,6 +65,7 @@ |
|
|
|
<script> |
|
|
|
import { Scedit,Scdetail } from '@/api/scinfo' |
|
|
|
import * as scproto from '@/utils/scinfo' |
|
|
|
import { unescape } from 'lodash' |
|
|
|
|
|
|
|
export default { |
|
|
|
data() { |
|
|
|
@ -102,7 +103,8 @@ export default { |
|
|
|
// 将fromdata 转成二进制 |
|
|
|
let binary = scproto.encodeServiceInfo(formData) |
|
|
|
//二进制转为base64 |
|
|
|
let base64 = btoa(String.fromCharCode.apply(null, new Uint8Array(binary))) |
|
|
|
//let base64 = btoa(String.fromCharCode.apply(null, new Uint8Array(binary))) |
|
|
|
let base64 =btoa(unescape(encodeURIComponent(binary))) |
|
|
|
// 提交数据 |
|
|
|
Scedit(base64).then(res => { |
|
|
|
console.log(res) |
|
|
|
|