Catch closing dialogs

This commit is contained in:
Natsumi
2025-10-17 11:27:19 +11:00
parent 529c6c2b04
commit 9e95e1734c
5 changed files with 99 additions and 85 deletions

View File

@@ -339,17 +339,21 @@ export const useSearchStore = defineStore('Search', () => {
inputPattern: /\S+/,
inputErrorMessage: t('prompt.direct_access_omni.input_error')
}
).then(({ value, action }) => {
if (action === 'confirm' && value) {
const input = value.trim();
if (!directAccessParse(input)) {
ElMessage({
message: t('prompt.direct_access_omni.message.error'),
type: 'error'
});
)
.then(({ value, action }) => {
if (action === 'confirm' && value) {
const input = value.trim();
if (!directAccessParse(input)) {
ElMessage({
message: t(
'prompt.direct_access_omni.message.error'
),
type: 'error'
});
}
}
}
});
})
.catch(() => {});
}
function showGroupDialogShortCode(shortCode) {