소스 검색

修改第一次登录取消钱包连接的逻辑

Yichael 1 년 전
부모
커밋
eef84cf2f5
1개의 변경된 파일1개의 추가작업 그리고 13개의 파일을 삭제
  1. 1 13
      components/topMain.vue

+ 1 - 13
components/topMain.vue

@@ -46,20 +46,8 @@
 import { ref,computed,onMounted } from "vue";
 // const { address } = useAccount();
 
-const firstTimeKey = 'app_first_time';
-
-const executeFirstTimeOnly = () => {
-  // 你的首次执行代码
-  console.log("This runs only the first time the app is launched.");
-  // 记录已经执行过首次代码
-  localStorage.setItem(firstTimeKey, 'false');
-};
-
 onMounted(() => {
-  const isFirstTime = localStorage.getItem(firstTimeKey) === null;
-  if (isFirstTime) {
-    disconnect();
-  }
+   disconnect();
 });
 
 const formattedAddress = computed(() => {