Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-admin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
project
jinfa-admin
Commits
bc12d1c5
Commit
bc12d1c5
authored
Sep 27, 2020
by
前端-许佳敏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改配置文件-写入环境变量
parent
9887a74a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
config.ts
config/config.ts
+5
-0
app.tsx
src/app.tsx
+1
-0
No files found.
config/config.ts
View file @
bc12d1c5
...
...
@@ -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 设置的默认语言 > 中文
...
...
src/app.tsx
View file @
bc12d1c5
...
...
@@ -16,6 +16,7 @@ import queryString from 'query-string';
import
'@/components/NiceForm/public'
setup
();
let
extraRoutes
:
never
[]
=
[];
// 与用户登录相关路由
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment