fix:通过E2E测试

This commit is contained in:
2026-03-10 00:52:59 +08:00
parent cef68a95d9
commit d206c79c24
8 changed files with 43 additions and 33 deletions

View File

@@ -51,15 +51,15 @@
import AppCard from "./AppCard.vue";
import { APM_STORE_BASE_URL } from "../global/storeConfig";
const props = defineProps<{
links: Array<any>;
lists: Array<{ title: string; apps: any[] }>;
defineProps<{
links: Array<Record<string, unknown>>;
lists: Array<{ title: string; apps: Record<string, unknown>[] }>;
loading: boolean;
error: string;
}>();
const emit = defineEmits<{
(e: "open-detail", app: any): void;
defineEmits<{
(e: "open-detail", app: Record<string, unknown>): void;
}>();
const computedImgUrl = (imgUrl: string) => {
@@ -68,7 +68,7 @@ const computedImgUrl = (imgUrl: string) => {
return `${APM_STORE_BASE_URL}/${window.apm_store.arch}${imgUrl}`;
};
const onLinkClick = (link: any) => {
const onLinkClick = (link: Record<string, unknown>) => {
if (link.type === "_blank") {
window.open(link.url, "_blank");
} else {