From 078e3745d89fbae3cc8784540ed77e4d9244bbcf Mon Sep 17 00:00:00 2001 From: icefire <1028247921@qq.com> Date: Mon, 21 Oct 2024 10:29:49 +0800 Subject: [PATCH] =?UTF-8?q?update:=20=E8=A7=A3=E5=86=B3=E6=89=93=E5=8C=85?= =?UTF-8?q?=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .eslintrc.json | 5 ++++- src/app/[[...lang]]/components/more.tsx | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 3722418..ca4b8e9 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,3 +1,6 @@ { - "extends": ["next/core-web-vitals", "next/typescript"] + "extends": ["next/core-web-vitals", "next/typescript"], + "rules": { + "@next/next/no-img-element": "off" // 或者 "error",取决于你希望是警告还是错误 + } } diff --git a/src/app/[[...lang]]/components/more.tsx b/src/app/[[...lang]]/components/more.tsx index c38d935..9a20891 100644 --- a/src/app/[[...lang]]/components/more.tsx +++ b/src/app/[[...lang]]/components/more.tsx @@ -1,7 +1,7 @@ import Link from "next/link" export default function More(props: {dict: Record, lang: string[]}) { - const { dict, lang } = props + const { dict } = props return <>