Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jisu_gongdan_phone
Project
Project
Details
Activity
Releases
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
zhanglongbao
jisu_gongdan_phone
Commits
3793e252
Commit
3793e252
authored
Sep 06, 2024
by
zhanglongbao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
e649e8f8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
.env.development
.env.development
+1
-1
axios.ts
src/api/axios.ts
+1
-1
vite.config.ts
vite.config.ts
+6
-6
No files found.
.env.development
View file @
3793e252
# 接口域名
# 接口域名
VITE_APP_BASE_URL = '
http://work-order-test.linanquan.com
'
VITE_APP_BASE_URL = ''
src/api/axios.ts
View file @
3793e252
...
@@ -6,7 +6,7 @@ import { $toast } from "@/components/toast";
...
@@ -6,7 +6,7 @@ import { $toast } from "@/components/toast";
const
external_token
=
getUrlKey
(
"external_token"
)
||
"cr2pc8jsibf027753ppg"
;
const
external_token
=
getUrlKey
(
"external_token"
)
||
"cr2pc8jsibf027753ppg"
;
const
http
=
axios
.
create
({
const
http
=
axios
.
create
({
baseURL
:
"
/api
"
,
baseURL
:
"
http://test-server.hzjiace.com:8080/test
"
,
timeout
:
5000
,
timeout
:
5000
,
});
});
...
...
vite.config.ts
View file @
3793e252
...
@@ -29,12 +29,12 @@ export default ({ mode }: any) => {
...
@@ -29,12 +29,12 @@ export default ({ mode }: any) => {
},
},
server
:
{
server
:
{
host
:
"0.0.0.0"
,
host
:
"0.0.0.0"
,
proxy
:
{
//
proxy: {
"/api"
:
{
//
"/api": {
target
:
VITE_APP_BASE_URL
,
//
target: VITE_APP_BASE_URL,
changeOrigin
:
true
,
//
changeOrigin: true,
},
//
},
},
//
},
},
},
});
});
};
};
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