File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -99,7 +99,8 @@ import type { NotificationInstance } from 'ant-design-vue/es/notification/interf
99
99
export const useGloablStore = defineStore (' global' , () => {
100
100
const message: MessageInstance = ref ();
101
101
const notification: NotificationInstance = ref ();
102
- const modal: Omit <ModalStaticFunctions , ' warn' > = ref ()(() => {
102
+ const modal: Omit <ModalStaticFunctions , ' warn' > = ref ();
103
+ (() => {
103
104
const staticFunction = App .useApp ();
104
105
message .value = staticFunction .message ;
105
106
modal .value = staticFunction .modal ;
Original file line number Diff line number Diff line change @@ -100,7 +100,8 @@ import type { NotificationInstance } from 'ant-design-vue/es/notification/interf
100
100
export const useGloablStore = defineStore (' global' , () => {
101
101
const message: MessageInstance = ref ();
102
102
const notification: NotificationInstance = ref ();
103
- const modal: Omit <ModalStaticFunctions , ' warn' > = ref ()(() => {
103
+ const modal: Omit <ModalStaticFunctions , ' warn' > = ref ();
104
+ (() => {
104
105
const staticFunction = App .useApp ();
105
106
message .value = staticFunction .message ;
106
107
modal .value = staticFunction .modal ;
You can’t perform that action at this time.
0 commit comments