From 3066c0adf387139dbf60d1ca18d3c280f8376002 Mon Sep 17 00:00:00 2001 From: LiaoYijun Date: Tue, 29 Jul 2025 17:01:14 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E4=B8=8A=E4=BC=A0=E6=97=A5?= =?UTF-8?q?=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/LogUploader.jsx | 27 +++++++++++++-------------- src/pageSpy/index.jsx | 2 +- 2 files changed, 14 insertions(+), 15 deletions(-) diff --git a/src/components/LogUploader.jsx b/src/components/LogUploader.jsx index b32ad4f..09c096b 100644 --- a/src/components/LogUploader.jsx +++ b/src/components/LogUploader.jsx @@ -1,7 +1,5 @@ import { useState } from "react"; import { Popover, message, FloatButton, Button, Form, Input } from "antd"; -import "antd/dist/reset.css"; -import "dayjs/locale/zh-cn"; import { BugOutlined } from "@ant-design/icons"; import useAuthStore from "@/stores/Auth"; import { uploadPageSpyLog, sendNotify } from "@/pageSpy"; @@ -58,18 +56,19 @@ function LogUploader() { ); return ( - <>{contextHolder} - - } /> - + <> + {contextHolder} + + } /> + ); } diff --git a/src/pageSpy/index.jsx b/src/pageSpy/index.jsx index a31a301..0bf2433 100644 --- a/src/pageSpy/index.jsx +++ b/src/pageSpy/index.jsx @@ -57,7 +57,7 @@ export const loadPageSpy = (title) => { export const uploadPageSpyLog = async () => { - if (import.meta.env.DEV || window.$pageSpy) return true; + if (import.meta.env.DEV) return true; if (window.$pageSpy) { try {