From d0000f8debfdac09ed5e7a4a039d47561ceaf031 Mon Sep 17 00:00:00 2001 From: Silent YANG Date: Sun, 9 Jun 2024 21:10:25 +0800 Subject: [PATCH] update --- src/views/list/mdc/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/list/mdc/index.vue b/src/views/list/mdc/index.vue index 1f64ed8..a3baab0 100644 --- a/src/views/list/mdc/index.vue +++ b/src/views/list/mdc/index.vue @@ -108,7 +108,7 @@ colKey: 'name', width: 250, 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: { component: Input, props: { @@ -161,7 +161,7 @@ for (let i = 0; i < 0x100; i += 0x10) { if(uint8ArrayToHexReverseString(rawEEPROM.subarray(i, i + 0x02)) != 'ffff'){ _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)) }) }else{