|
|
|
@ -101,12 +101,13 @@ export default { |
|
|
|
} |
|
|
|
// 将fromdata 转成二进制 |
|
|
|
let binary = scproto.encodeServiceInfo(formData) |
|
|
|
console.log(binary,"binary") |
|
|
|
//二进制转为base64 |
|
|
|
let base64 = btoa(String.fromCharCode.apply(null, new Uint8Array(binary))) |
|
|
|
// 提交数据 |
|
|
|
Scedit(formData).then(res => { |
|
|
|
Scedit(base64).then(res => { |
|
|
|
console.log(res) |
|
|
|
console.log(formData,"formData") |
|
|
|
console.log("save success ") |
|
|
|
// console.log(formData,"formData") |
|
|
|
// console.log("save success ") |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
|