Browse Source

fix: toast修复

Drjnigfubo 3 years ago
parent
commit
f65e572115
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/packages/__VUE/toast/index.ts

+ 2 - 2
src/packages/__VUE/toast/index.ts

@@ -55,7 +55,7 @@ const updateToast = (opts: any) => {
     }
     const instance: any = createVNode(Toast, opts);
     render(instance, container);
-    return instance.component.ctx;
+    return ToastFunction;
   }
 };
 
@@ -80,7 +80,7 @@ const mountToast = (opts: any) => {
   const instance: any = createVNode(Toast, opts);
   render(instance, container);
   document.body.appendChild(container);
-  return instance.component.ctx;
+  return ToastFunction;
 };
 
 const errorMsg = (msg: string) => {