[fix]checkin always loading...

This commit is contained in:
yuexin 2024-04-24 20:12:51 +08:00
parent 1558790f93
commit 71573cefe4

View File

@ -798,6 +798,7 @@ import {
import { sendToChain, sendHelp } from "./../../utils/chainapi.js";
import { Wallet } from "@/wallet/index.js";
import { formatShowAddress } from "@/utils/utils.js";
import { formatDate } from '@/utils/utcdate.util.js';
export default {
components: {
@ -1335,7 +1336,8 @@ export default {
this.isLoading = true;
let storeageKey;
try {
storeageKey = await sendToChain("check", address, "");
let today = formatDate(new Date());
storeageKey = await sendToChain("check", address, today);
} catch (err) {
this.isLoading = false;
this.$showErr(err);