|
@@ -696,16 +696,24 @@ export default defineComponent({
|
|
|
// 小数绘图
|
|
// 小数绘图
|
|
|
if(props.type === 'huitu'){
|
|
if(props.type === 'huitu'){
|
|
|
const img_file = helper.read('sendData');
|
|
const img_file = helper.read('sendData');
|
|
|
- const upload_file_id = img_file.upload_file_id;
|
|
|
|
|
|
|
+ if(img_file){
|
|
|
|
|
+ const upload_file_id = img_file.upload_file_id;
|
|
|
|
|
|
|
|
- sendData = {
|
|
|
|
|
- message: value,
|
|
|
|
|
- upload_file_id: upload_file_id
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ if(upload_file_id){
|
|
|
|
|
+ sendData = {
|
|
|
|
|
+ message: value,
|
|
|
|
|
+ upload_file_id: upload_file_id
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
- setTimeout(() => {
|
|
|
|
|
- helper.write('sendData', {});
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ setTimeout(() => {
|
|
|
|
|
+ helper.write('sendData', {});
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+ }else{
|
|
|
|
|
+ sendData = {
|
|
|
|
|
+ message: value
|
|
|
|
|
+ };
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
const dt = JSON.stringify(sendData);
|
|
const dt = JSON.stringify(sendData);
|