We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b919e9 commit 7300e49Copy full SHA for 7300e49
website/src/components/utils/Toast.vue
@@ -1,17 +1,16 @@
1
<script lang="ts">
2
-let instance: any
3
export function showToast(txt: string) {
4
- if (instance) {
5
- instance.show(txt)
+ let show = (window as any).instanceShow
+ if (show) {
+ show(txt)
6
}
7
8
</script>
9
<script setup lang="ts">
10
-import { ref, watch, getCurrentInstance } from 'vue'
+import { ref, watch } from 'vue'
11
let shown = ref(false)
12
let text = ref('')
13
-instance = getCurrentInstance()
14
-instance.show = function show(val: string) {
+;(window as any).instanceShow = function show(val: string) {
15
text.value = val
16
17
let timer: number
0 commit comments