diff --git a/visa-scpi-example/comments.json b/visa-scpi-example/comments.json index 1bc9d52..52c7cd9 100644 --- a/visa-scpi-example/comments.json +++ b/visa-scpi-example/comments.json @@ -5,5 +5,5 @@ ":SENS:POW:ACH:BAND:CHAN": " \u4fe1\u9053\u5e26\u5bbd", ":CALC:MARK1:X": " MARK\u70b91", ":SENS:FREQ:SPAN": " \u9891\u7387\u533a\u95f4\uff08\u5bbd\u5ea6\uff09", - ":CALC:DELT2:X": " " + ":CALC:DELT2:X": " MARK\u70b91\u504f\u79fb" } \ No newline at end of file diff --git a/visa-scpi-example/index.html b/visa-scpi-example/index.html index 3500085..8cffb15 100644 --- a/visa-scpi-example/index.html +++ b/visa-scpi-example/index.html @@ -214,7 +214,7 @@ setTimeout(() => { toast.classList.remove('show'); setTimeout(() => toast.remove(), 300); - }, 3000); + }, 1500); } document.getElementById('update-btn').onclick = async () => { @@ -236,6 +236,7 @@ const result = await response.json(); if (result.success) { showToast('更新成功!'); + loadCommands(); // 重新加载命令 } else { showToast('更新失败!', 'error'); }