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
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
3 deletions
.gitignore
src/config/index.ts
vue.config.js
.gitignore
View file @
7aaed25
.DS_Store
.DS_Store
node_modules
node_modules
package-lock.json
yarn.lock
/dist
/dist
...
...
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 {
...
@@ -5,6 +12,6 @@ export default {
baseUrl
:
{
baseUrl
:
{
dev
:
"/api"
,
dev
:
"/api"
,
// pro: "https://config-center-backend.glsx.com.cn", //生产环境
// 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 @@
...
@@ -3,7 +3,7 @@
* @Author: huyue
* @Author: huyue
* @Date: 2023-01-16 17:23:14
* @Date: 2023-01-16 17:23:14
* @LastEditors: huyue
* @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
{
defineConfig
}
=
require
(
"@vue/cli-service"
);
const
AutoImport
=
require
(
"unplugin-auto-import/webpack"
);
const
AutoImport
=
require
(
"unplugin-auto-import/webpack"
);
...
@@ -30,7 +30,7 @@ module.exports = defineConfig({
...
@@ -30,7 +30,7 @@ module.exports = defineConfig({
// },
// },
proxy
:
{
proxy
:
{
"/api"
:
{
"/api"
:
{
target
:
"http://192.168.1.68:700
1
"
,
target
:
"http://192.168.1.68:700
3
"
,
ws
:
true
,
ws
:
true
,
changeOrigin
:
true
,
changeOrigin
:
true
,
pathRewrite
:
{
"^/api"
:
""
},
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