|
|
@@ -114,7 +114,7 @@ import { ElMessage, ElMessageBox } from 'element-plus'
|
|
|
import { http } from '@/plugins/http'
|
|
|
import { ethers, Wallet } from 'ethers'
|
|
|
import { Copy, ArrowNarrowRight, ArrowsRightLeft } from '@vicons/tabler'
|
|
|
-import { useClipboard, useFileDialog } from '@vueuse/core'
|
|
|
+import { useClipboard, useFileDialog, useIntervalFn } from '@vueuse/core'
|
|
|
|
|
|
const network = inject('network')
|
|
|
watch(network, () => {
|
|
|
@@ -217,9 +217,8 @@ async function getAccounts() {
|
|
|
const res = await http.get('/accounts/my', { network: network.value })
|
|
|
accounts.value = res
|
|
|
}
|
|
|
-onMounted(() => {
|
|
|
- getAccounts()
|
|
|
-})
|
|
|
+useIntervalFn(getAccounts, 10000)
|
|
|
+getAccounts()
|
|
|
function copyAddress(address) {
|
|
|
const { copy } = useClipboard({
|
|
|
legacy: true
|