删除角色,用户或租户时出错

时间:2017-11-29 22:50:38

标签: angular asp.net-core aspnetboilerplate

ABP版本:3.2.4

我是这个模板的新手,只是玩框架。我有一个新的Angular和ASP.NET Core应用程序,但我无法删除角色,用户或租户。在Firefox中,我看到了这个错误:

ERROR TypeError: Cannot read property 'then' of undefined
at Object.<anonymous> (scripts.bundle.js:12844)
at Function.e.Deferred (scripts.bundle.js:219)
at Object.abp.message.confirm (scripts.bundle.js:12843)
at RolesComponent.delete (webpack-
internal:///../../../../../src/app/roles/roles.component.ts:55)
at Object.eval [as handleEvent]
(ng:///AppModule/RolesComponent.ngfactory.js:52)
at handleEvent (webpack-internal:///../../../core/esm5/core.js:13450)
at callWithDebugContext (webpack-
internal:///../../../core/esm5/core.js:14935)
at Object.debugHandleEvent [as handleEvent] (webpack-
internal:///../../../core/esm5/core.js:14522)
at dispatchEvent (webpack-internal:///../../../core/esm5/core.js:9899)
at eval (webpack-internal:///../../../core/esm5/core.js:10513)
View_RolesComponent_2 @ ng:///AppModule/RolesComponent.ngfactory.js:47

这是我在 package.json 中的配置:

"sweetalert": "^1.1.3"
"abp-ng2-module": "^1.3.0"
"abp-web-resources": "^3.2.2"

我该如何解决这个问题?

1 个答案:

答案 0 :(得分:0)

在最近的abp版本中,如果它被触发两次,则会发出异常警告异常。所以你可能会陷入这种情况。删除用户会显示带有甜蜜警报的确认对话框。如果服务器端出现问题,则会显示新的甜蜜警报。所以你要做的就是将甜蜜的警报更新到最新的。 见https://github.com/aspnetboilerplate/aspnetboilerplate/pull/2694