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