This commit is contained in:
wang 2024-07-13 15:33:35 +08:00
parent 04f132080e
commit 1fb0a0a4dd
3 changed files with 6 additions and 5 deletions

View File

@ -132,7 +132,7 @@ function Operation2() {
student_ID, student_ID,
operateID operateID
}) })
const result=detectionSrc.data['result'] const result=detectionSrc.data
if(result.includes('NO')){ if(result.includes('NO')){
alert('连接失败') alert('连接失败')
setTrainScore(0) setTrainScore(0)
@ -140,8 +140,9 @@ function Operation2() {
alert('连接成功') alert('连接成功')
setTrainScore(50) setTrainScore(50)
} }
}catch{ }catch(err){
alert('detection出错') console.log(err)
alert('detection出错 ')
} }
} }

View File

@ -1,5 +1,5 @@
// jest-dom adds custom jest matchers for asserting on DOM nodes. // jest-dom adds custom jest matchers for asserting on DOM nodes.
// allows you to do things like: // allows you to do things like:
// expect(element).toHaveTextContent(/react/i) // expect(element).toHaveTextContent(/react/i)
// learn more: https://github.com/testing-library/jest-dom // learn more: https://github.com/testing-library/jest-do m
import '@testing-library/jest-dom'; import '@testing-library/jest-dom';

View File

@ -1,7 +1,7 @@
import json import json
import traceback import traceback
import dmPython.dmPython
import yaml import yaml
from kubernetes import client, config from kubernetes import client, config
from flask import jsonify from flask import jsonify