Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
陆宇天
/
config-center-front
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 7aaed25c
authored
Jun 06, 2023
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交
1 parent
77867f95
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
26 deletions
.gitignore
src/config/index.ts
vue.config.js
.gitignore
View file @
7aaed25
.DS_Store
node_modules
/dist
# local env files
.env.local
.env.*.local
# Log files
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
.DS_Store
node_modules
package-lock.json
yarn.lock
/dist
# local env files
.env.local
.env.*.local
# Log files
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
src/config/index.ts
View file @
7aaed25
/*
* @Description:
* @Author: huyue
* @Date: 2023-01-30 16:10:23
* @LastEditors: huyue
* @LastEditTime: 2023-06-06 10:31:00
*/
/**
* 公共配置模块
*/
...
...
@@ -5,6 +12,6 @@ export default {
baseUrl
:
{
dev
:
"/api"
,
// pro: "https://config-center-backend.glsx.com.cn", //生产环境
pro
:
"http
://config-center-backend.test.glsx.com
"
,
//test环境
pro
:
"http
s://config-center-backend.test.glsx.com.cn
"
,
//test环境
},
};
vue.config.js
View file @
7aaed25
...
...
@@ -3,7 +3,7 @@
* @Author: huyue
* @Date: 2023-01-16 17:23:14
* @LastEditors: huyue
* @LastEditTime: 2023-0
5-04 16:44:31
* @LastEditTime: 2023-0
6-06 11:08:52
*/
const
{
defineConfig
}
=
require
(
"@vue/cli-service"
);
const
AutoImport
=
require
(
"unplugin-auto-import/webpack"
);
...
...
@@ -30,7 +30,7 @@ module.exports = defineConfig({
// },
proxy
:
{
"/api"
:
{
target
:
"http://192.168.1.68:700
1
"
,
target
:
"http://192.168.1.68:700
3
"
,
ws
:
true
,
changeOrigin
:
true
,
pathRewrite
:
{
"^/api"
:
""
},
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment