feat(widget): replace img with next/image for optimized logo rendering

This commit is contained in:
mlogclub
2026-04-21 22:53:07 +08:00
parent c6a0e9e918
commit c02cfc85e4
+4 -1
View File
@@ -1,6 +1,7 @@
"use client";
import dynamic from "next/dynamic";
import Image from "next/image";
import { useEffect, useState } from "react";
import {
ArrowRight,
@@ -272,9 +273,11 @@ function WidgetHomePageInner() {
rel="noopener noreferrer"
className="inline-flex items-center gap-3 text-slate-950"
>
<img
<Image
src="/images/logo.png"
alt="贝壳 AI 客服"
width={40}
height={40}
className="h-10 w-10 rounded-2xl object-contain ring-1 ring-slate-200"
/>
<span>