fix: DDS couldn't apply

This commit is contained in:
2025-05-17 13:10:00 +08:00
parent c39f688115
commit 9b2ee8ad46
5 changed files with 512 additions and 390 deletions

View File

@@ -34,6 +34,9 @@ const eqps = useEquipments();
const bitstreamFile = ref<File | null>();
watchEffect(() => {
console.log(
`board监听改动: ${props.size} ${props.boardAddr}:${props.boardPort}`,
);
eqps.setAddr(props.boardAddr);
eqps.setPort(props.boardPort);
});
@@ -64,14 +67,12 @@ defineExpose({
</script>
<script lang="tsx">
const eqps = useEquipments();
// 添加一个静态方法来获取默认props
export function getDefaultProps(): MotherBoardProps {
console.log(`board监听改动: ${eqps.boardAddr}:${eqps.boardPort}`);
return {
size: 1,
boardAddr: eqps.boardAddr,
boardPort: eqps.boardPort.toString(),
boardAddr: "127.0.0.1",
boardPort: "1234",
};
}
</script>