This commit is contained in:
2018-11-16 18:52:48 +00:00
parent 869322032e
commit 7f8dca456a
7 changed files with 55 additions and 8 deletions

View File

@@ -0,0 +1,34 @@
/* xeslint-disable */
//import store from "../store";
function dealWithError(msg) {
alert(msg);
}
export default {
handleGeneralError(message, source, lineno, colno, error) {
var msg = "GeneralError: \n" + message;
if (source) {
msg += "\nsource: " + source;
}
if (lineno) {
msg += "\nlineno: " + lineno;
}
if (colno) {
msg += "\ncolno: " + colno;
}
if (error) {
msg += "\nerror: " + error;
}
dealWithError(msg);
},
handleVueError(err, vm, info) {
var msg = "VueError: \n" + err;
if (vm) {
msg += "\nvm present ";
}
if (info) {
msg += "\ninfo: " + info;
}
dealWithError(msg);
}
};