feat: open storage artifacts via admin preview

This commit is contained in:
www
2026-04-19 21:29:51 +08:00
parent e801249e21
commit 8884f9c416
22 changed files with 101 additions and 63 deletions

View File

@@ -137,16 +137,15 @@ import { ref } from "vue";
import { ElMessage } from "element-plus";
import { SiteList } from "@/api/interface/site/list";
import { getDomainExternalSeoSnapshotValidateRuns } from "@/api/modules/site/list";
import { openAdminArtifact } from "@/utils/adminArtifact";
const BASE_URL = import.meta.env.VITE_API_URL as string;
const visible = ref(false);
const loading = ref(false);
const rows = ref<SiteList.DomainExternalSeoSnapshotValidateRunItem[]>([]);
const summary = ref<SiteList.DomainExternalSeoSnapshotValidateRunData | null>(null);
const openPublicPath = (path?: string) => {
if (!path) return;
window.open(`${BASE_URL}/${String(path).replace(/^\/+/, "")}`, "_blank", "noopener");
void openAdminArtifact(path);
};
const loadRuns = async () => {