x修复反代

This commit is contained in:
qaq
2025-09-26 20:04:07 +08:00
parent 5fa361d88b
commit 69b3d3002d
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -1,16 +1,16 @@
import ReactDOM from "react-dom/client";
import { HashRouter } from "react-router-dom";
import { BrowserRouter } from "react-router-dom";
import App from "./App.tsx";
import { Provider } from "./provider.tsx";
import "@/styles/globals.css";
ReactDOM.createRoot(document.getElementById("root")!).render(
<HashRouter>
<BrowserRouter>
<Provider>
<App />
</Provider>
</HashRouter>
</BrowserRouter>
);
+1 -1
View File
@@ -6,7 +6,7 @@ export default defineConfig({
plugins: [
react(),
],
base: './',
base: '/',
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),