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