Commit b5f00014 by 杨北旺

添加异常处理

1 parent bb805b77
...@@ -44,12 +44,23 @@ export default { ...@@ -44,12 +44,23 @@ export default {
let para = { let para = {
routerMethod: method routerMethod: method
} }
const loading = this.$loading({
lock: true,
text: 'Loading',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.3)'
})
converterApi(para).then(res => { converterApi(para).then(res => {
if (res) {
localStorage.setItem('openInfo', JSON.stringify(res)) localStorage.setItem('openInfo', JSON.stringify(res))
this.openType = res.open ? 1 : 0 this.openType = res.open ? 1 : 0
} else {
this.openType = 0
}
loading.close()
}) })
}, },
toIntroductPage(){ toIntroductPage() {
const title = '业务介绍' const title = '业务介绍'
this.$router.push({ path: '/inSale/upgradeIntro', query: { $title: title } }) this.$router.push({ path: '/inSale/upgradeIntro', query: { $title: title } })
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!