mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-05 23:56:42 +08:00
fix
This commit is contained in:
@@ -12,16 +12,16 @@ const props = defineProps({
|
||||
const siteIcon = ref<string>("");
|
||||
|
||||
// 查询站点图标
|
||||
const getSiteIcon = async (siteid: number) => {
|
||||
const getSiteIcon = async () => {
|
||||
try {
|
||||
siteIcon.value = (await api.get("site/icon/" + siteid)).data.icon;
|
||||
siteIcon.value = (await api.get("site/icon/" + props.site?.id)).data.icon;
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
}
|
||||
};
|
||||
|
||||
onMounted(() => {
|
||||
getSiteIcon(props.site?.id ?? 0);
|
||||
getSiteIcon();
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user