diff --git a/src/App.vue b/src/App.vue index 5ce18dc..38d7364 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,24 +1,38 @@ + + diff --git a/src/utils/dialogManager.js b/src/utils/dialogManager.js new file mode 100644 index 0000000..dba8b4f --- /dev/null +++ b/src/utils/dialogManager.js @@ -0,0 +1,13 @@ +let dialogInstance = null; + +export function registerDialog(instance) { + dialogInstance = instance; +} + +export function showFSDialog(type, title, content) { + if (!dialogInstance) { + console.error('FSDialog not registered'); + return Promise.resolve(0); + } + return dialogInstance.show(type, title, content); +} diff --git a/src/views/Home.vue b/src/views/Home.vue index 22dffe0..66e2d94 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -9,9 +9,12 @@