</head> | </head> | ||||
<body> | <body> | ||||
<div id="root"></div> | <div id="root"></div> | ||||
<script src="/umi.d00d8ffc.js"></script> | |||||
<script src="/umi.59ecbd58.js"></script> | |||||
</body> | </body> | ||||
</html> | </html> |
npm run build | |||||
npm run build:dev | |||||
msg=$1 | msg=$1 | ||||
ciskip="[CI SKIP]" | ciskip="[CI SKIP]" | ||||
import type { RequestConfig } from "@umijs/max"; | import type { RequestConfig } from "@umijs/max"; | ||||
import { message, Modal, Dropdown, MenuProps, theme } from "antd"; | import { message, Modal, Dropdown, MenuProps, theme } from "antd"; | ||||
import { BulbOutlined, LogoutOutlined } from '@ant-design/icons'; | import { BulbOutlined, LogoutOutlined } from '@ant-design/icons'; | ||||
import { baseUrl } from './constants/index' | |||||
import routes from '../config/routes' | import routes from '../config/routes' | ||||
import { history } from '@umijs/max'; | import { history } from '@umijs/max'; | ||||
import { | import { | ||||
sessionStorage.setItem('path', location.pathname) | 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 = { | export const request: RequestConfig = { | ||||
baseURL: baseUrl, | baseURL: baseUrl, |
export const web: string = '/web'; | export const web: string = '/web'; | ||||
export const common: string = '/common'; | export const common: string = '/common'; | ||||
export type StringOptional = string | undefined; | 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' | |||||