Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
vipSupplier
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王淑敏
vipSupplier
Commits
bd033264
Commit
bd033264
authored
Jul 23, 2021
by
zxwk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
♻
refactor: add baseURL
parent
b96fce9c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
src/config/net.config.js
+5
-0
src/config/setting.config.js
+0
-5
No files found.
src/config/net.config.js
View file @
bd033264
...
...
@@ -2,6 +2,11 @@
* @description 导出默认网路配置
**/
const
network
=
{
// 默认的接口地址 如果是开发环境和生产环境走vab-mock-server,当然你也可以选择自己配置成需要的接口地址
baseURL
:
process
.
env
.
NODE_ENV
===
'development'
?
'vab-mock-server'
:
'vab-mock-server'
,
//配后端数据的接收方式application/json;charset=UTF-8或者application/x-www-form-urlencoded;charset=UTF-8
contentType
:
'application/json;charset=UTF-8'
,
//消息框消失时间
...
...
src/config/setting.config.js
View file @
bd033264
...
...
@@ -12,11 +12,6 @@ const setting = {
lintOnSave
:
true
,
// 进行编译的依赖
transpileDependencies
:
[],
// 默认的接口地址 如果是开发环境和生产环境走vab-mock-server,当然你也可以选择自己配置成需要的接口地址
baseURL
:
process
.
env
.
NODE_ENV
===
'development'
?
'vab-mock-server'
:
'vab-mock-server'
,
//标题 (包括初次加载雪花屏的标题 页面的标题 浏览器的标题)
title
:
'vue-admin-beautiful-pro'
,
//简写
...
...
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