| | |
| | | import { ElMessage } from 'element-plus'; |
| | | import { showNotify } from 'vant'; |
| | | import request, { IPage, IWorkspaceResponse, IListWorkspaceResponse } from '@/api/http/request' |
| | | import { TaskType, TaskStatus, OutOfControlAction } from '@/types/task' |
| | | import { WaylineType } from '@/types/wayline' |
| | |
| | | reader.onload = function (e) { |
| | | const text = reader.result as string |
| | | const result = JSON.parse(text) |
| | | ElMessage.error(result.message) |
| | | showNotify({ type: 'warning', message: result.message }) |
| | | } |
| | | reader.readAsText(result.data, 'utf-8') |
| | | } else { |