From be23d801620fdafa8b7c3beb0ed43da84ae60e2d Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Wed, 26 Jun 2024 10:28:22 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=88=86=E4=BA=AB-Tic?= =?UTF-8?q?ket=E8=AE=BE=E7=BD=AE=E6=9C=89=E6=95=88=E6=9C=9F=E5=8F=AF?= =?UTF-8?q?=E4=BB=A5=E8=AE=BE=E7=BD=AE=E4=B8=BA=E5=B0=8F=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/src/views/share/share/ShareTicket.vue | 8 +++++++- de-xpack | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/core/core-frontend/src/views/share/share/ShareTicket.vue b/core/core-frontend/src/views/share/share/ShareTicket.vue index 74f733fe8b..22dc519f92 100644 --- a/core/core-frontend/src/views/share/share/ShareTicket.vue +++ b/core/core-frontend/src/views/share/share/ShareTicket.vue @@ -80,6 +80,7 @@ min="0" max="1440" size="small" + @input="v => handleInput(v, scope.$index)" @change="val => validateExp(val, scope.$index)" /> @@ -251,7 +252,12 @@ const refreshTicket = row => { row.ticket = res.data }) } - +const handleInput = (val, index) => { + if (val === null || val === '') { + return + } + state.tableData[index]['exp'] = val.replace(/[^\d]/g, '') +} const validateExp = (val, index) => { const cref = expRefs.value[index] const e = cref.input diff --git a/de-xpack b/de-xpack index 2e3a15d625..365b26a018 160000 --- a/de-xpack +++ b/de-xpack @@ -1 +1 @@ -Subproject commit 2e3a15d62588fe0b3b23f2f78c67f78a2653432a +Subproject commit 365b26a0184732715ebcec96518c7b18e10d8442