App.vue 503 B

123456789101112131415161718192021222324252627
  1. <template>
  2. <router-view />
  3. </template>
  4. <script setup>
  5. import { l_removeItem } from "@/utils/storage";
  6. // 必要时加上去
  7. // import { useI18n } from 'vue-i18n';
  8. // const { locale } = useI18n();
  9. // 监控钱包是否断开连接
  10. ethereum.on("accountsChanged", (accounts) => {
  11. if (accounts.length === 0) {
  12. l_removeItem("address");
  13. }
  14. });
  15. </script>
  16. <style>
  17. * {
  18. -webkit-overflow-scrolling: touch;
  19. }
  20. * {
  21. -webkit-tap-highlight-color: transparent;
  22. }
  23. </style>