Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
H
h5-baby
Project
Project
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
malin
h5-baby
Commits
4373d9ec
Commit
4373d9ec
authored
Apr 07, 2021
by
malin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
prod
parent
4c525b00
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
api.js
src/service/api.js
+1
-1
axios.js
src/service/axios.js
+1
-1
No files found.
src/service/api.js
View file @
4373d9ec
...
@@ -4,7 +4,7 @@ import sign from "./sign";
...
@@ -4,7 +4,7 @@ import sign from "./sign";
axios
.
defaults
.
withCredentials
=
false
// 设置axios不让携带cookie
axios
.
defaults
.
withCredentials
=
false
// 设置axios不让携带cookie
const
reportUrl
=
"https://report.zhangxinhulian.com"
;
const
reportUrl
=
"https://report.zhangxinhulian.com"
;
const
payUrl
=
"https://zx-pay
test
.zhangxinzhixun.com"
;
const
payUrl
=
"https://zx-pay.zhangxinzhixun.com"
;
const
request
=
(
url
,
method
,
data_or_params
=
{},
form
)
=>
{
const
request
=
(
url
,
method
,
data_or_params
=
{},
form
)
=>
{
if
(
process
.
env
.
NODE_ENV
===
"development"
)
{
if
(
process
.
env
.
NODE_ENV
===
"development"
)
{
...
...
src/service/axios.js
View file @
4373d9ec
import
axios
from
"axios"
;
import
axios
from
"axios"
;
let
baseURL
=
"https://feedapi
test
.zhangxinhulian.com"
;
let
baseURL
=
"https://feedapi.zhangxinhulian.com"
;
// if (process.env.NODE_ENV === "development") {
// if (process.env.NODE_ENV === "development") {
// baseURL = "https://feedapitest.zhangxinhulian.com";
// baseURL = "https://feedapitest.zhangxinhulian.com";
// } else {
// } else {
...
...
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