bladex前端ui项目,基于avue-cli2.0开发
包含基础工作流,不包含表单设计器
https://git.javablade.com/blade/Saber
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
630 B
25 lines
630 B
|
3 years ago
|
import store from './store'
|
||
|
|
export default {
|
||
|
|
install: (app) => {
|
||
|
|
app.config.errorHandler = (err, vm, info) => {
|
||
|
|
store.commit('ADD_LOGS', {
|
||
|
|
type: 'error',
|
||
|
|
message: err.message,
|
||
|
|
stack: err.stack,
|
||
|
|
info
|
||
|
|
})
|
||
|
|
if (process.env.NODE_ENV === 'development') {
|
||
|
|
console.group('>>>>>> 错误信息 >>>>>>')
|
||
|
|
console.log(info)
|
||
|
|
console.groupEnd();
|
||
|
|
console.group('>>>>>> Vue 实例 >>>>>>')
|
||
|
|
console.log(vm)
|
||
|
|
console.groupEnd();
|
||
|
|
console.group('>>>>>> Error >>>>>>')
|
||
|
|
console.log(err)
|
||
|
|
console.groupEnd();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|