Commit d25e6dbc by hulei

增加默认错误提示新

parent 74413af2
...@@ -111,8 +111,9 @@ export default { ...@@ -111,8 +111,9 @@ export default {
// this.$router.push({ path: "business/inftrnpsDetail", query: { idx: idx}}); // this.$router.push({ path: "business/inftrnpsDetail", query: { idx: idx}});
this.$router.push({ path: viewurl, query: {} }); this.$router.push({ path: viewurl, query: {} });
}else{ }else{
const h = this.$createElement const h = this.$createElement;
this.$notify.error({ title: '请求失败', message: h('p',{style: 'word-break:break-all;'}, res.respMsg) }) const msg = res.respMsg||'请求执行失败!'
this.$notify.error({ title: '错误', message: h('p',{style: 'word-break:break-all;'}, msg) })
} }
}); });
}, },
...@@ -130,7 +131,8 @@ export default { ...@@ -130,7 +131,8 @@ export default {
this.$router.push({ path: viewurl, query: {} }); this.$router.push({ path: viewurl, query: {} });
}else{ }else{
const h = this.$createElement const h = this.$createElement
this.$notify.error({ title: '请求失败', message: h('p',{style: 'word-break:break-all;'}, res.respMsg) }) const msg = res.respMsg||'请求执行失败!'
this.$notify.error({ title: '错误', message: h('p',{style: 'word-break:break-all;'}, msg) })
} }
}); });
}, },
......
...@@ -509,7 +509,8 @@ export default { ...@@ -509,7 +509,8 @@ export default {
} }
else { else {
const h = this.$createElement const h = this.$createElement
this.$notify.error({ title: '失败', message: h('p',{style: 'word-break:break-all;'}, rtnmsg.respMsg) }) const msg = rtnmsg.respMsg||'请求执行失败!'
this.$notify.error({ title: '错误', message: h('p',{style: 'word-break:break-all;'}, msg) })
} }
} }
} }
......
...@@ -509,7 +509,8 @@ export default { ...@@ -509,7 +509,8 @@ export default {
} }
else { else {
const h = this.$createElement const h = this.$createElement
this.$notify.error({ title: '失败', message: h('p',{style: 'word-break:break-all;'}, rtnmsg.respMsg) }) const msg = rtnmsg.respMsg||'请求执行失败!'
this.$notify.error({ title: '错误', message: h('p',{style: 'word-break:break-all;'}, msg) })
} }
} }
} }
......
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