mirror of
https://github.com/suyiiyii/nonebot-bison.git
synced 2025-07-12 02:12:59 +08:00
rename && update
This commit is contained in:
parent
ea08f1e681
commit
90adaaa51c
@ -2,7 +2,7 @@
|
|||||||
"name": "admin-frontend",
|
"name": "admin-frontend",
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"homepage": "hk_reporter",
|
"homepage": "bison",
|
||||||
"proxy": "http://localhost:8080",
|
"proxy": "http://localhost:8080",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@ant-design/icons": "^4.6.4",
|
"@ant-design/icons": "^4.6.4",
|
||||||
@ -25,7 +25,7 @@
|
|||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "react-scripts start",
|
"start": "react-scripts start",
|
||||||
"build": "react-scripts build && cp -r -f build/* ../src/plugins/nonebot_hk_reporter/admin_page/dist",
|
"build": "react-scripts build && cp -r -f build/* ../src/plugins/nonebot_bison/admin_page/dist",
|
||||||
"test": "react-scripts test",
|
"test": "react-scripts test",
|
||||||
"eject": "react-scripts eject"
|
"eject": "react-scripts eject"
|
||||||
},
|
},
|
||||||
|
@ -41,7 +41,7 @@ function App() {
|
|||||||
<LoginContext.Provider value={{login: loginStatus, save}}>
|
<LoginContext.Provider value={{login: loginStatus, save}}>
|
||||||
<GlobalConfContext.Provider value={globalConf}>
|
<GlobalConfContext.Provider value={globalConf}>
|
||||||
{ globalConf.loaded &&
|
{ globalConf.loaded &&
|
||||||
<Router basename="/hk_reporter">
|
<Router basename="/bison">
|
||||||
<Switch>
|
<Switch>
|
||||||
<Route path="/auth/:code">
|
<Route path="/auth/:code">
|
||||||
<Auth />
|
<Auth />
|
||||||
|
@ -2,7 +2,7 @@ import axios from "axios";
|
|||||||
// import { useContext } from 'react';
|
// import { useContext } from 'react';
|
||||||
// import { LoginContext } from "../utils/context";
|
// import { LoginContext } from "../utils/context";
|
||||||
|
|
||||||
export const baseUrl = '/hk_reporter/api/'
|
export const baseUrl = '/bison/api/'
|
||||||
|
|
||||||
// const loginStatus = useContext(LoginContext);
|
// const loginStatus = useContext(LoginContext);
|
||||||
axios.interceptors.request.use(function (config) {
|
axios.interceptors.request.use(function (config) {
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user