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

@@ -52,6 +52,7 @@ import { computed, ref } from "vue";
import { ElMessage } from "element-plus";
import { SiteList } from "@/api/interface/site/list";
import { getDomainExternalSeoRealSummary } from "@/api/modules/site/list";
import { openAdminArtifact } from "@/utils/adminArtifact";
const visible = ref(false);
const loading = ref(false);
@@ -90,8 +91,7 @@ const loadSummary = async () => {
};
const openSummaryFile = (path?: string) => {
if (!path) return;
window.open(`${import.meta.env.VITE_API_URL}/${String(path).replace(/^\/+/, "")}`, "_blank", "noopener");
void openAdminArtifact(path);
};
const statusLabel = (status?: string) => {