鍒濆鎻愪氦锛氱墰鍙暟鎹鐞嗙郴缁?- 鍖呭惈鍚庣Spring Boot鍜屽墠绔疺ue3椤圭洰
This commit is contained in:
20
admin-system/node_modules/element-plus/es/utils/error.mjs
generated
vendored
Normal file
20
admin-system/node_modules/element-plus/es/utils/error.mjs
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
import { isString } from '@vue/shared';
|
||||
|
||||
class ElementPlusError extends Error {
|
||||
constructor(m) {
|
||||
super(m);
|
||||
this.name = "ElementPlusError";
|
||||
}
|
||||
}
|
||||
function throwError(scope, m) {
|
||||
throw new ElementPlusError(`[${scope}] ${m}`);
|
||||
}
|
||||
function debugWarn(scope, message) {
|
||||
if (typeof process !== "undefined" && process.env.NODE_ENV !== "production") {
|
||||
const error = isString(scope) ? new ElementPlusError(`[${scope}] ${message}`) : scope;
|
||||
console.warn(error);
|
||||
}
|
||||
}
|
||||
|
||||
export { debugWarn, throwError };
|
||||
//# sourceMappingURL=error.mjs.map
|
||||
Reference in New Issue
Block a user