浏览代码

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

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(() => {