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 {