| @@ -8,6 +8,6 @@ | |||
| </head> | |||
| <body> | |||
| <div id="root"></div> | |||
| <script src="/umi.d00d8ffc.js"></script> | |||
| <script src="/umi.59ecbd58.js"></script> | |||
| </body> | |||
| </html> | |||
| @@ -1,4 +1,4 @@ | |||
| npm run build | |||
| npm run build:dev | |||
| msg=$1 | |||
| ciskip="[CI SKIP]" | |||
| @@ -1,6 +1,7 @@ | |||
| import type { RequestConfig } from "@umijs/max"; | |||
| import { message, Modal, Dropdown, MenuProps, theme } from "antd"; | |||
| import { BulbOutlined, LogoutOutlined } from '@ant-design/icons'; | |||
| import { baseUrl } from './constants/index' | |||
| import routes from '../config/routes' | |||
| import { history } from '@umijs/max'; | |||
| import { | |||
| @@ -104,8 +105,6 @@ export function onRouteChange({ | |||
| sessionStorage.setItem('path', location.pathname) | |||
| } | |||
| console.log(2313,process.env) | |||
| const baseUrl = process.env.BUILD_ENV == 'production' ? 'https://admin1.jcjob.cn/api' : 'https://rcsc-test.jcjob.cn/api' | |||
| export const request: RequestConfig = { | |||
| baseURL: baseUrl, | |||
| @@ -2,8 +2,8 @@ export const DEFAULT_NAME = 'Umi Max'; | |||
| export const web: string = '/web'; | |||
| export const common: string = '/common'; | |||
| export type StringOptional = string | undefined; | |||
| console.log(process.env.NODE_ENV) | |||
| export const Imageprefix: string = process.env.NODE_ENV == 'production' ? 'https://admin1.jcjob.cn/img/' : 'https://rcsc-test.jcjob.cn/img/' | |||
| export const baseUrl: string = process.env.NODE_ENV == 'production' ? 'https://admin1.jcjob.cn/api' : 'https://rcsc-test.jcjob.cn/api' | |||
| console.log(231553,JSON.parse(process.env.BUILD_ENV) ) | |||
| export const Imageprefix: string = JSON.parse(process.env.BUILD_ENV) == 'production' ? 'https://admin1.jcjob.cn/img/' : 'https://rcsc-test.jcjob.cn/img/' | |||
| export const baseUrl: string = JSON.parse(process.env.BUILD_ENV) == 'production' ? 'https://admin1.jcjob.cn/api' : 'https://rcsc-test.jcjob.cn/api' | |||