+
{this.props.children}
)
} else {
return (
-
+
你还有没有登陆好吧!
-
- {/* */}
-
+
)
}
}
diff --git a/src/views/About/index.tsx b/src/views/About/index.tsx
index 6508fee..e0a6441 100644
--- a/src/views/About/index.tsx
+++ b/src/views/About/index.tsx
@@ -1,5 +1,5 @@
import React from "react"
-import { useLocation, Route, Switch } from "react-router-dom"
+import { useLocation } from "react-router-dom"
function Test() {
return test
@@ -13,9 +13,9 @@ export default function (props: any) {
AboutAAAasda
22{props.children}
-
+ {/*
-
+ */}
)
}
diff --git a/vite.config.ts b/vite.config.ts
index 85c0343..24561f7 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -1,5 +1,5 @@
import { defineConfig } from "vite";
-import reactRefresh from "@vitejs/plugin-react-refresh";
+import react from "@vitejs/plugin-react-swc";
import WindiCSS from "vite-plugin-windicss";
const { resolve } = require("path");
@@ -15,5 +15,5 @@ export default defineConfig({
resolve: {
alias: [{ find: "@", replacement: resolve(__dirname, "src") }],
},
- plugins: [WindiCSS(), reactRefresh()],
+ plugins: [WindiCSS(), react()],
});