Implement webui import
This commit is contained in:
@ -2,7 +2,7 @@ import React from 'react'
|
||||
import ReactDOM from 'react-dom/client'
|
||||
import Login from './login/Login.jsx'
|
||||
import Home from './home/Home.jsx'
|
||||
//import './index.css'
|
||||
import Import from './import/Import.jsx'
|
||||
|
||||
let Elem;
|
||||
switch (window.location.pathname) {
|
||||
@ -12,6 +12,9 @@ switch (window.location.pathname) {
|
||||
case "/home/":
|
||||
Elem = Home;
|
||||
break;
|
||||
case "/import/":
|
||||
Elem = Import;
|
||||
break;
|
||||
default:
|
||||
window.location.pathname = "/";
|
||||
}
|
||||
|
Reference in New Issue
Block a user