Commit b5f00014 by 杨北旺

添加异常处理

1 parent bb805b77
......@@ -44,13 +44,24 @@ export default {
let para = {
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 => {
localStorage.setItem('openInfo', JSON.stringify(res))
this.openType = res.open ? 1 : 0
if (res) {
localStorage.setItem('openInfo', JSON.stringify(res))
this.openType = res.open ? 1 : 0
} else {
this.openType = 0
}
loading.close()
})
},
toIntroductPage(){
const title = '业务介绍'
toIntroductPage() {
const 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!