Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
ming-order
Overview
Overview
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fengzhaoyu
ming-order
Commits
5dcee054
Commit
5dcee054
authored
Oct 29, 2019
by
fengzhaoyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
请求报错时catch err
parent
7acdc51f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
29 deletions
+6
-29
workspace.xml
.idea/workspace.xml
+4
-24
menu.html
menu.html
+2
-5
No files found.
.idea/workspace.xml
View file @
5dcee054
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
<property
name=
"DefaultHtmlFileTemplate"
value=
"HTML File"
/>
<property
name=
"DefaultHtmlFileTemplate"
value=
"HTML File"
/>
<property
name=
"SHARE_PROJECT_CONFIGURATION_FILES"
value=
"true"
/>
<property
name=
"SHARE_PROJECT_CONFIGURATION_FILES"
value=
"true"
/>
<property
name=
"WebServerToolWindowFactoryState"
value=
"false"
/>
<property
name=
"WebServerToolWindowFactoryState"
value=
"false"
/>
<property
name=
"last_opened_file_path"
value=
"$PROJECT_DIR$
/../ming-pig-ui
"
/>
<property
name=
"last_opened_file_path"
value=
"$PROJECT_DIR$"
/>
<property
name=
"node.js.detected.package.eslint"
value=
"true"
/>
<property
name=
"node.js.detected.package.eslint"
value=
"true"
/>
<property
name=
"node.js.detected.package.tslint"
value=
"true"
/>
<property
name=
"node.js.detected.package.tslint"
value=
"true"
/>
<property
name=
"node.js.path.for.package.eslint"
value=
"project"
/>
<property
name=
"node.js.path.for.package.eslint"
value=
"project"
/>
...
@@ -90,7 +90,9 @@
...
@@ -90,7 +90,9 @@
<workItem
from=
"1571653093792"
duration=
"618000"
/>
<workItem
from=
"1571653093792"
duration=
"618000"
/>
<workItem
from=
"1571706768993"
duration=
"606000"
/>
<workItem
from=
"1571706768993"
duration=
"606000"
/>
<workItem
from=
"1571822161624"
duration=
"908000"
/>
<workItem
from=
"1571822161624"
duration=
"908000"
/>
<workItem
from=
"1572225197346"
duration=
"945000"
/>
<workItem
from=
"1572225197346"
duration=
"1890000"
/>
<workItem
from=
"1572321968837"
duration=
"4676000"
/>
<workItem
from=
"1572329927952"
duration=
"180000"
/>
</task>
</task>
<servers
/>
<servers
/>
</component>
</component>
...
@@ -110,25 +112,4 @@
...
@@ -110,25 +112,4 @@
</map>
</map>
</option>
</option>
</component>
</component>
<component
name=
"XDebuggerManager"
>
<breakpoint-manager>
<breakpoints>
<line-breakpoint
enabled=
"true"
type=
"javascript"
>
<url>
file://$PROJECT_DIR$/menu.html
</url>
<line>
134
</line>
<option
name=
"timeStamp"
value=
"1"
/>
</line-breakpoint>
<line-breakpoint
enabled=
"true"
type=
"javascript"
>
<url>
file://$PROJECT_DIR$/menu.html
</url>
<line>
297
</line>
<option
name=
"timeStamp"
value=
"2"
/>
</line-breakpoint>
<line-breakpoint
enabled=
"true"
type=
"javascript"
>
<url>
file://$PROJECT_DIR$/menu.html
</url>
<line>
304
</line>
<option
name=
"timeStamp"
value=
"3"
/>
</line-breakpoint>
</breakpoints>
</breakpoint-manager>
</component>
</project>
</project>
\ No newline at end of file
menu.html
View file @
5dcee054
...
@@ -82,13 +82,10 @@
...
@@ -82,13 +82,10 @@
// var orgId = window.android.getOrgId()
// var orgId = window.android.getOrgId()
// localStorage.setItem('orgId',orgId)
// localStorage.setItem('orgId',orgId)
localStorage
.
setItem
(
'orgId'
,
'ding9ddd48137390507735c2f4657eb6378f'
)
localStorage
.
setItem
(
'orgId'
,
'ding9ddd48137390507735c2f4657eb6378f'
)
// localStorage.setItem('orgId','ding9d')
// axios.defaults.baseURL = 'http://192.168.1.101:9999/mingpay-phone' // 本地钱
// axios.defaults.baseURL = 'http://192.168.1.101:9999/mingpay-phone' // 本地钱
axios
.
defaults
.
baseURL
=
'https://gateway.mingwork.com/mingpay-phone'
// beta环境
axios
.
defaults
.
baseURL
=
'https://gateway.mingwork.com/mingpay-phone'
// beta环境
// axios.defaults.headers['Content-Type'] = 'application/json'
const
$http
=
{
const
$http
=
{
request
:
(
url
,
method
,
data
)
=>
{
request
:
(
url
,
method
,
data
)
=>
{
...
@@ -100,7 +97,7 @@
...
@@ -100,7 +97,7 @@
}).
then
(
res
=>
{
}).
then
(
res
=>
{
return
resolve
(
res
)
return
resolve
(
res
)
}).
catch
(
err
=>
{
}).
catch
(
err
=>
{
return
reject
(
res
)
return
reject
(
err
)
});
});
}))
}))
}
}
...
...
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