Commit bc12d1c5 authored by 前端-许佳敏's avatar 前端-许佳敏

修改配置文件-写入环境变量

parent 9887a74a
......@@ -11,6 +11,11 @@ import theme from './theme.config'
export default defineConfig({
title: '瓴犀平台后台',
// 如需写入环境变量 需在config中先写入
define: {
"process.env.SITE_ID": process.env.SITE_ID,
"process.env.BACK_GATEWAY": process.env.BACK_GATEWAY
},
locale: {
antd: true,
// 默认情况下,当前语言环境的识别按照:localStorage 中 umi_locale 值 > 浏览器检测 > default 设置的默认语言 > 中文
......
......@@ -16,6 +16,7 @@ import queryString from 'query-string';
import '@/components/NiceForm/public'
setup();
let extraRoutes: never[] = [];
// 与用户登录相关路由
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment