瀏覽代碼

fix: uploading loading

Dogtiti 1 年之前
父節點
當前提交
f2d2622172
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      app/components/artifact.tsx

+ 1 - 0
app/components/artifact.tsx

@@ -126,6 +126,7 @@ export function ArtifactShareButton({
           bordered
           title={Locale.Export.Artifact.Title}
           onClick={() => {
+            if (loading) return;
             setLoading(true);
             upload(getCode())
               .then((res) => {