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 <>