This commit is contained in:
Silent YANG 2024-06-09 21:10:25 +08:00
parent 5fb5ca5ad7
commit d0000f8deb

View file

@ -108,7 +108,7 @@
colKey: 'name', colKey: 'name',
width: 250, width: 250,
align: 'left', align: 'left',
cell: (h, { row }) => row.name ? row.name.replace(/[^a-z0-9_]/g, '') : undefined, cell: (h, { row }) => row.name ? row.name.replace(/[^a-zA-Z0-9_]/g, '') : undefined,
edit: { edit: {
component: Input, component: Input,
props: { props: {
@ -161,7 +161,7 @@
for (let i = 0; i < 0x100; i += 0x10) { for (let i = 0; i < 0x100; i += 0x10) {
if(uint8ArrayToHexReverseString(rawEEPROM.subarray(i, i + 0x02)) != 'ffff'){ if(uint8ArrayToHexReverseString(rawEEPROM.subarray(i, i + 0x02)) != 'ffff'){
_renderData.push({ _renderData.push({
name: uint8ArrayToString(rawEEPROM.subarray(i + 0x02, i + 0x10), appStore.configuration?.charset), name: uint8ArrayToString(rawEEPROM.subarray(i + 0x02, i + 0x10), appStore.configuration?.charset).trim(),
mdcid: uint8ArrayToHexReverseString(rawEEPROM.subarray(i, i + 0x01)) + uint8ArrayToHexReverseString(rawEEPROM.subarray(i + 0x01, i + 0x02)) mdcid: uint8ArrayToHexReverseString(rawEEPROM.subarray(i, i + 0x01)) + uint8ArrayToHexReverseString(rawEEPROM.subarray(i + 0x01, i + 0x02))
}) })
}else{ }else{