Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
shuniu-admin-react
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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
superman
shuniu-admin-react
Commits
7a5ad887
Commit
7a5ad887
authored
Aug 03, 2016
by
superman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
status undefined show status code
parent
58b5bdd4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
index.js
dist/index.js
+3
-3
proxy.config.js
proxy.config.js
+2
-2
utils.js
src/utils.js
+3
-3
No files found.
dist/index.js
View file @
7a5ad887
This source diff could not be displayed because it is too large. You can
view the blob
instead.
proxy.config.js
View file @
7a5ad887
...
...
@@ -2,6 +2,6 @@
// - https://github.com/dora-js/dora-plugin-proxy#规则定义
module
.
exports
=
{
'/api/*'
:
'http://react.yanky.cn/'
,
//
'/api/*': 'http://192.168.1.126:8080/'
//
'/api/*': 'http://react.yanky.cn/',
'/api/*'
:
'http://192.168.1.126:8080/'
};
src/utils.js
View file @
7a5ad887
...
...
@@ -55,7 +55,7 @@ export const PRODUCT_STATUS = {
}
export
const
productStatusToString
=
status
=>
{
return
PRODUCT_STATUS
[
status
]
||
'未定义'
;
return
PRODUCT_STATUS
[
status
]
||
'未定义
('
+
status
+
')
'
;
};
export
const
productEnableCreateTrade
=
status
=>
{
...
...
@@ -68,7 +68,7 @@ export const USER_STATUS = {
};
export
const
userStatusToString
=
status
=>
{
return
USER_STATUS
[
status
]
||
'未定义'
;
return
USER_STATUS
[
status
]
||
'未定义
('
+
status
+
')
'
;
};
...
...
@@ -95,7 +95,7 @@ export const tradeStatusToString = status => {
case
33
:
return
'交易关闭'
;
default
:
return
'未定义'
;
return
'未定义
('
+
status
+
')
'
;
}
};
...
...
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