mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-07 00:36:41 +08:00
This commit is contained in:
@@ -87,6 +87,12 @@ function saveRuleInfo() {
|
|||||||
emit('done')
|
emit('done')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 验证规则ID输入
|
||||||
|
function validateRuleId() {
|
||||||
|
// 只允许英文和数字,不允许空格
|
||||||
|
ruleInfo.value.id = ruleInfo.value.id.replace(/[^a-zA-Z0-9]/g, '')
|
||||||
|
}
|
||||||
|
|
||||||
// 按钮点击
|
// 按钮点击
|
||||||
function onClose() {
|
function onClose() {
|
||||||
emit('close')
|
emit('close')
|
||||||
@@ -138,6 +144,7 @@ function onClose() {
|
|||||||
persistent-hint
|
persistent-hint
|
||||||
active
|
active
|
||||||
prepend-inner-icon="mdi-identifier"
|
prepend-inner-icon="mdi-identifier"
|
||||||
|
@input="validateRuleId"
|
||||||
/>
|
/>
|
||||||
</VCol>
|
</VCol>
|
||||||
<VCol cols="12" md="6">
|
<VCol cols="12" md="6">
|
||||||
|
|||||||
Reference in New Issue
Block a user