fix path
This commit is contained in:
@@ -22,4 +22,4 @@ npm install
|
||||
npm run dev
|
||||
```
|
||||
|
||||
- 在浏览器访问 http://localhost:3000
|
||||
- 在浏览器访问 http://localhost:3000/alisurvey
|
||||
|
||||
@@ -7,7 +7,7 @@ import "./index.css";
|
||||
|
||||
createRoot(document.getElementById("root")!).render(
|
||||
<StrictMode>
|
||||
<BrowserRouter>
|
||||
<BrowserRouter basename={import.meta.env.BASE_URL}>
|
||||
<App />
|
||||
<Toaster />
|
||||
</BrowserRouter>
|
||||
|
||||
@@ -12,5 +12,6 @@ function getPlugins() {
|
||||
}
|
||||
|
||||
export default defineConfig({
|
||||
plugins: getPlugins()
|
||||
plugins: getPlugins(),
|
||||
base: '/alisurvey',
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user