diff --git a/src/components/cards/PluginCard.vue b/src/components/cards/PluginCard.vue index 7a1e274e..64791503 100644 --- a/src/components/cards/PluginCard.vue +++ b/src/components/cards/PluginCard.vue @@ -215,6 +215,12 @@ const iconPath: Ref = computed(() => { return `./plugin_icon/${props.plugin?.plugin_icon}` }) +// 插件作者头像路径 +const authorPath: Ref = computed(() => { + // 网络图片则使用代理后返回 + return `${import.meta.env.VITE_API_BASE_URL}system/img/1?imgurl=${encodeURIComponent(props.plugin?.author_url + '.png')}` +}) + // 重置插件 async function resetPlugin() { const isConfirmed = await createConfirm({ @@ -436,8 +442,8 @@ watch( - - + + {{ props.plugin?.plugin_author }} @@ -513,4 +519,15 @@ watch( content: ''; inset: 0; } +.author-info { + display: flex; + align-items: center; +} +.author-avatar { + width: 24px; + height: 24px; + margin-right: 8px; + border-radius: 50%; + object-fit: cover; +}