3 Star 18 Fork 19

simple-zy/SealFront

Create your Gitee Account
Explore and code with more than 14 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
error.js 630 Bytes
Copy Edit Raw Blame History
simple-zy authored 2022-11-26 13:38 +08:00 . 项目初始化
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();
}
}
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/ytstudycode/seal-front.git
git@gitee.com:ytstudycode/seal-front.git
ytstudycode
seal-front
SealFront
master

Search