feat: add storage for eqp

This commit is contained in:
2025-07-09 21:21:07 +08:00
parent bbad7388d8
commit 48501d79e2
2 changed files with 3 additions and 33 deletions

View File

@@ -1,5 +1,6 @@
import { ref, reactive, watchPostEffect } from 'vue'
import { defineStore } from 'pinia'
import { useLocalStorage } from '@vueuse/core'
import { isString, toNumber } from 'lodash';
import { Common } from '@/utils/Common';
import z from "zod"
@@ -14,9 +15,8 @@ export const useEquipments = defineStore('equipments', () => {
const constrainsts = useConstraintsStore();
const dialog = useDialogStore();
// Basic Info
const boardAddr = ref("127.0.0.1");
const boardPort = ref(1234);
const boardAddr = useLocalStorage('fpga-board-addr', "127.0.0.1");
const boardPort = useLocalStorage('fpga-board-port', 1234);
// Jtag
const jtagBitstream = ref<File>();