feat: open storage artifacts via admin preview
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user