Rutas relativas
This commit is contained in:
@@ -7,7 +7,7 @@ import NotFound from './pages/NotFound.tsx';
|
||||
import Home from './pages/Home.tsx';
|
||||
|
||||
createRoot(document.getElementById('root')!).render(
|
||||
<BrowserRouter>
|
||||
<BrowserRouter basename="/visor3d">
|
||||
<Routes>
|
||||
<Route path="/" element={<Home />} />
|
||||
<Route path="/login" element={<Login />} />
|
||||
|
||||
@@ -14,7 +14,7 @@ import {
|
||||
AlertDialogTitle,
|
||||
AlertDialogTrigger,
|
||||
} from "@/components/ui/alert-dialog"
|
||||
import { useNavigate, useNavigation } from 'react-router';
|
||||
import { useNavigate } from 'react-router';
|
||||
|
||||
|
||||
function App() {
|
||||
|
||||
@@ -77,6 +77,8 @@ export default function Previewer({ modelUrl }: { modelUrl: string }) {
|
||||
const [nodePositions, setNodePositions] = useState<Record<string, [number, number, number]>>({});
|
||||
const [isFullscreen, setIsFullscreen] = useState(false);
|
||||
|
||||
nodePositions;
|
||||
|
||||
|
||||
const resetView = () => {
|
||||
if (controlsRef.current) {
|
||||
|
||||
Reference in New Issue
Block a user