Commit 5dcee054 by fengzhaoyu

请求报错时catch err

parent 7acdc51f
...@@ -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
...@@ -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)
}); });
})) }))
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment