aa48145557
体检修复:启动日志不再打印 AUTH_TOKEN、密钥可清空、推送失败不占整段冷却、目录名与文案统一成 plugins/。
16 lines
435 B
TypeScript
16 lines
435 B
TypeScript
import { StrictMode } from 'react'
|
|
import { createRoot } from 'react-dom/client'
|
|
|
|
import App from './App'
|
|
import './index.css'
|
|
import QueryPage from './pages/QueryPage'
|
|
|
|
// /query 是不需要 token 的公开查询页,其余路径是控制台
|
|
const Page = window.location.pathname.replace(/\/+$/, '') === '/query' ? QueryPage : App
|
|
|
|
createRoot(document.getElementById('root')!).render(
|
|
<StrictMode>
|
|
<Page />
|
|
</StrictMode>,
|
|
)
|