Commit b5f00014 by 杨北旺

添加异常处理

1 parent bb805b77
...@@ -44,13 +44,24 @@ export default { ...@@ -44,13 +44,24 @@ 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 => {
localStorage.setItem('openInfo', JSON.stringify(res)) if (res) {
this.openType = res.open ? 1 : 0 localStorage.setItem('openInfo', JSON.stringify(res))
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!