feat: add storage for eqp
This commit is contained in:
@@ -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>();
|
||||
|
||||
Reference in New Issue
Block a user