feat:转账插件

This commit is contained in:
2026-07-23 14:31:06 +08:00
parent 4916546322
commit d5a6a16ea5
560 changed files with 71777 additions and 44216 deletions
@@ -0,0 +1,31 @@
<template>
<up-toast ref="upGlobalToastRef" />
<up-notify ref="upGlobalNotifyRef" />
</template>
<script setup>
import { onBeforeUnmount, onMounted, ref } from 'vue'
const upGlobalToastRef = ref(null)
const upGlobalNotifyRef = ref(null)
onMounted(() => {
if (typeof uni === 'undefined' || !uni.$u) return
if (typeof uni.$u.setRootToastRef === 'function') {
uni.$u.setRootToastRef(upGlobalToastRef.value)
}
if (typeof uni.$u.setRootNotifyRef === 'function') {
uni.$u.setRootNotifyRef(upGlobalNotifyRef.value)
}
})
onBeforeUnmount(() => {
if (typeof uni === 'undefined' || !uni.$u) return
if (typeof uni.$u.setRootToastRef === 'function') {
uni.$u.setRootToastRef(null)
}
if (typeof uni.$u.setRootNotifyRef === 'function') {
uni.$u.setRootNotifyRef(null)
}
})
</script>