From 8e16d3cd3a1a3562c60481083f737585b32e49b1 Mon Sep 17 00:00:00 2001 From: zzlgreat Date: Sat, 22 Nov 2025 15:43:21 +0800 Subject: [PATCH] update pay function --- tailwind.config.js | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/tailwind.config.js b/tailwind.config.js index 391cfd76..9e6f91e7 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -1,23 +1,22 @@ /** @type {import('tailwindcss').Config} */ const { heroui } = require("@heroui/react"); +const path = require("path"); module.exports = { content: [ - // 只扫描 src 目录(明确指定 js 和 jsx,避免 ts 匹配 node_modules) - "./src/**/*.js", - "./src/**/*.jsx", - "./public/index.html", + // 使用绝对路径(Tailwind 推荐方式,避免误报) + path.join(__dirname, "./src/**/*.{js,jsx}"), + path.join(__dirname, "./public/index.html"), - // Hero UI 组件库(精确路径) - "./node_modules/@heroui/theme/dist/**/*.js", - "./node_modules/@heroui/react/dist/**/*.js", + // Hero UI 组件库 + path.join(__dirname, "./node_modules/@heroui/theme/dist/**/*.js"), + path.join(__dirname, "./node_modules/@heroui/react/dist/**/*.js"), ], darkMode: "class", theme: { extend: { - // Brainwave 自定义颜色 colors: { n: { 1: "#FFFFFF",