Merge branch 'master' of https://gitea.xn--7p0a.site/2312072104/dm
This commit is contained in:
commit
d3d2d66478
|
@ -130,15 +130,16 @@ function Operation2() {
|
||||||
student_ID,
|
student_ID,
|
||||||
operateID
|
operateID
|
||||||
})
|
})
|
||||||
const result=detectionSrc.data['result']
|
const result=detectionSrc.data
|
||||||
if(result==='NO'){
|
if(result.includes('NO')){
|
||||||
alert('连接失败')
|
alert('连接失败')
|
||||||
setTrainScore(0)
|
setTrainScore(0)
|
||||||
}else{
|
}else{
|
||||||
alert('连接成功')
|
alert('连接成功')
|
||||||
setTrainScore(50)
|
setTrainScore(50)
|
||||||
}
|
}
|
||||||
}catch{
|
}catch(err){
|
||||||
|
console.log(err)
|
||||||
alert('detection出错 ')
|
alert('detection出错 ')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
import json
|
import json
|
||||||
import traceback
|
import traceback
|
||||||
|
|
||||||
|
|
||||||
import yaml
|
import yaml
|
||||||
from kubernetes import client, config
|
from kubernetes import client, config
|
||||||
from flask import jsonify
|
from flask import jsonify
|
||||||
|
|
Loading…
Reference in New Issue