You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
793 B
10 lines
793 B
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; |
|
import React from 'react'; |
|
import { Route, Routes, BrowserRouter as Router } from 'react-router-dom'; |
|
import App from './App'; |
|
import Login from './login'; |
|
import ServiceAdd from './service.add'; |
|
//测试外网 |
|
export default function Root({ path, organType, children }) { |
|
return (_jsx(Router, Object.assign({ basename: process.env.PUBLIC_URL }, { children: _jsxs(Routes, { children: [process.env.REACT_APP_ENVIRONMENT != 'official' && (_jsx(Route, { path: process.env.NODE_ENV === 'development' ? '/' : '/login', element: _jsx(Login, { path: path, organType: organType }) })), _jsx(Route, { path: "/app/*", element: _jsx(App, {}) }), _jsx(Route, { path: "/serviceAdd", element: _jsx(ServiceAdd, {}) }), children] }) }))); |
|
}
|
|
|