feat: 完善部分jtag边界扫描websocket代码

This commit is contained in:
alivender
2025-08-01 20:21:32 +08:00
parent 9fe0ee959f
commit 2e9e378457
6 changed files with 10 additions and 7 deletions

View File

@@ -29,7 +29,7 @@ export const useEquipments = defineStore("equipments", () => {
new Error("JtagClient Mutex Timeout!"),
);
const jtagHubConnection = new HubConnectionBuilder()
.withUrl("/hubs/JtagHub")
.withUrl("http://localhost:5000/hubs/JtagHub")
.withAutomaticReconnect()
.build();
const jtagHubProxy =
@@ -43,7 +43,7 @@ export const useEquipments = defineStore("equipments", () => {
},
);
onMounted(() => {
jtagHubConnection.start();
});
// Matrix Key
@@ -87,6 +87,7 @@ export const useEquipments = defineStore("equipments", () => {
}
async function jtagBoundaryScanSetOnOff(enable: boolean) {
jtagHubConnection.start();
enableJtagBoundaryScan.value = enable;
if (enable) {
jtagHubProxy.startBoundaryScan(jtagBoundaryScanFreq.value);