修复BUG

This commit is contained in:
zhiyang7 2022-02-10 15:05:09 +08:00
parent 8ebf71cc3f
commit 35714418b3
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@
$("#parameter").val('')
})
$('#submit').on('click', function () {
$.get('/predict', { mode: $("input[name='mode'][checked]").val(), parameter: $('#parameter').val() }, function (result) {
$.get('/predict', { mode: $("input[name='mode']:checked").val(), parameter: $('#parameter').val() }, function (result) {
if(result && result.status === 0){
text = result.result.map(function(item){
return item.word + '\t' + item.pinyin