diff --git a/dist/Sp_memory.jsx b/dist/Sp_memory.jsx index 11b7c94..82bfa0a 100644 --- a/dist/Sp_memory.jsx +++ b/dist/Sp_memory.jsx @@ -6002,6 +6002,10 @@ try { var observeSingleton = __webpack_require__(11); observeSingleton(sp); + + app.onError && app.onError(function (err) { + alert('\u8B66\u544A, Sp_memory\u68C0\u6D4B\u5230AE\u62A5\u9519, \u5185\u5BB9\u5982\u4E0B:\n' + err.toString() + '\n\n\u8BF7\u5C3D\u91CF\u5C06\u5C42\u5206\u6563\u5B58\u50A8\u5728\u4E0D\u540C\u7EC4\u5185'); + }); })(memoryGlobal); } catch (err) { alert('Line #' + err.line.toString() + '\r\n' + err.toString()); diff --git a/index.js b/index.js index 8ebf39a..9c2348d 100644 --- a/index.js +++ b/index.js @@ -90,5 +90,12 @@ try { var observeSingleton = require('src/mvvm/index') observeSingleton(sp) + + app.onError && app.onError(function(err) { + alert(`警告, Sp_memory检测到AE报错, 内容如下: +${err.toString()} + +请尽量将层分散存储在不同组内`) + }) })(memoryGlobal) } catch (err) { alert('Line #' + err.line.toString() + '\r\n' + err.toString()) }