代码第二部分
async uploadToDetect() {
try {
if (this.isDetection) {
return
}
let res = await fileSelect();
LoadingDialog.showLoading("分析中")
let serverData = await bugFileUpload(getContext(this), res);
LoadingDialog.hide();
this.recordData.recordId = JSON.parse(serverData)["recordId"]
this.recordData.imageResultPath = JSON.parse(serverData)["imageResultPath"]
this.isDetection = true;
let list = await getRecordDetail(this.recordData.recordId!)
this.list = list.data;
this.insectIds = this.list.map(item => parseInt(item.insectId)) + "";
this.getStream()
} catch (e) {
LoadingDialog.hide();
this.isDetection = false;
}
}
try {
if (this.isDetection) {
return
}
let res = await fileSelect();
LoadingDialog.showLoading("分析中")
let serverData = await bugFileUpload(getContext(this), res);
LoadingDialog.hide();
this.recordData.recordId = JSON.parse(serverData)["recordId"]
this.recordData.imageResultPath = JSON.parse(serverData)["imageResultPath"]
this.isDetection = true;
let list = await getRecordDetail(this.recordData.recordId!)
this.list = list.data;
this.insectIds = this.list.map(item => parseInt(item.insectId)) + "";
this.getStream()
} catch (e) {
LoadingDialog.hide();
this.isDetection = false;
}
}
Next one:我们都一样
声明:以上文章均为用户自行添加,仅供打字交流使用,不代表本站观点,本站不承担任何法律责任,特此声明!如果有侵犯到您的权利,请及时联系我们删除。
Hot degree:★☆☆☆☆
Difficulty:★★★★★
quality:☆☆☆☆☆
Description: the system according to the heat, the difficulty, the quality of automatic certification, the certification of the article will be involved in typing!
This paper typing ranking TOP20
登录后可见
Type:代码 Date time:2025-11-25 13:12:29 Favorite:19 Score:0