Skip to content

Commit

Permalink
changed to hash router
Browse files Browse the repository at this point in the history
  • Loading branch information
arositen committed May 19, 2024
1 parent fec8553 commit 86651e8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ import React from 'react'
import ReactDOM from 'react-dom/client'
import App from './App.tsx'
import './index.css'
import { BrowserRouter } from "react-router-dom";
import { HashRouter } from "react-router-dom";
import ScrollToTop from '@/utils/ScrollToTop';

ReactDOM.createRoot(document.getElementById('root')!).render(
<React.StrictMode>
<BrowserRouter>
<HashRouter>
<ScrollToTop />
<App />
</BrowserRouter>
</HashRouter>
</React.StrictMode>,
)
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import path from 'path';
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
base: '/Gumball/',
base: '/Gumball/#',
resolve: {
alias: [{ find: "@", replacement: path.resolve(__dirname, "src") }]
}
Expand Down

0 comments on commit 86651e8

Please sign in to comment.