Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
client
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
0ecae0aa
authored
Jun 13, 2025
by
lijinqi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
配置文件修改
parent
736682ab
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
.env.development
+1
-1
vite.config.js
+4
-4
No files found.
.env.development
View file @
0ecae0aa
...
@@ -5,4 +5,4 @@ VITE_APP_TITLE = 先进计算普惠算力公共服务平台
...
@@ -5,4 +5,4 @@ VITE_APP_TITLE = 先进计算普惠算力公共服务平台
VITE_APP_ENV = 'development'
VITE_APP_ENV = 'development'
# 先进计算普惠算力公共服务平台/开发环境
# 先进计算普惠算力公共服务平台/开发环境
VITE_APP_BASE_API = 'http://
47.106.72.238
:8086'
VITE_APP_BASE_API = 'http://
localhost
:8086'
vite.config.js
View file @
0ecae0aa
...
@@ -25,18 +25,18 @@ export default defineConfig(({ mode, command }) => {
...
@@ -25,18 +25,18 @@ export default defineConfig(({ mode, command }) => {
},
},
// vite 相关配置
// vite 相关配置
server
:
{
server
:
{
//
port: 80
,
//
port: 18081
,
host
:
true
,
host
:
true
,
open
:
true
,
open
:
true
,
proxy
:
{
proxy
:
{
// https://cn.vitejs.dev/config/#server-proxy
// https://cn.vitejs.dev/config/#server-proxy
'/dev-api'
:
{
'/dev-api'
:
{
target
:
'http://
47.106.72.238
:8086'
,
target
:
'http://
localhost
:8086'
,
changeOrigin
:
true
,
changeOrigin
:
true
,
rewrite
:
(
p
)
=>
p
.
replace
(
/^
\/
dev-api/
,
''
)
rewrite
:
(
p
)
=>
p
.
replace
(
/^
\/
dev-api/
,
''
)
}
}
,
'http://
47.106.72.238
:8086'
:
{
,
'http://
localhost
:8086'
:
{
target
:
'http://
47.106.72.238
:8086'
,
target
:
'http://
localhost
:8086'
,
changeOrigin
:
true
,
changeOrigin
:
true
,
rewrite
:
(
p
)
=>
p
.
replace
(
/^
\/
dev-api/
,
''
)
rewrite
:
(
p
)
=>
p
.
replace
(
/^
\/
dev-api/
,
''
)
}
}
...
...
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