update 优化 代码小问题

This commit is contained in:
疯狂的狮子Li
2026-04-01 13:05:03 +08:00
parent f38e5e7c4d
commit cac35ecf4c
3 changed files with 16 additions and 17 deletions

View File

@@ -11,7 +11,7 @@ interface Return {
}
export default (ops?: Options): Return => {
const visible = ref(false);
const title = ref(ops.title || '');
const title = ref(ops?.title || '');
const openDialog = () => {
visible.value = true;