完成预测功能2

master
ynmlzdwsp 11 months ago
parent e24a8a8883
commit c64f67086f

@ -41,7 +41,7 @@
<!-- 爱情买卖 -->
<li @click="$router.push({path: '/love'})">
<div class="my-menu">
💋 <span>预测研发流程</span>
🥼 <span>预测研发流程</span>
</div>
</li>

@ -446,7 +446,7 @@ import {listTable1, predictReaction} from "@/utils/table1";
data() {
return {
predictResult:'000',
predictResult:'type预测结果',
smiles1 :'',
smiles2 :'',
userLove: {
@ -539,10 +539,10 @@ import {listTable1, predictReaction} from "@/utils/table1";
methods: {
/** 预测按钮操作 */
handleQuery() {
this.predictResult = '预测出错,请重试';
this.predictResult = '输入的SMILES错误,请重试';
predictReaction(this.smiles1, this.smiles2)
.then(prediction => {
this.predictResult = prediction;
this.predictResult = "type:"+prediction;
})
.catch(error => {
console.error(error);

Loading…
Cancel
Save