feat: 导入 MemRelay 初始源码

This commit is contained in:
Nixevol
2026-09-23 21:40:46 +08:00
commit 0ade3bb318
167 changed files with 53511 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
import { ElMessageBox, type ElMessageBoxOptions } from 'element-plus'
export async function confirmAction(
message: string,
title: string,
options?: ElMessageBoxOptions,
): Promise<boolean> {
try {
await ElMessageBox.confirm(message, title, options)
return true
} catch (error) {
if (error === 'cancel' || error === 'close') return false
throw error
}
}