删除角色、用户或租户时出错
Error when deleting Role, User or Tenant
ABP版本:3.2.4
我是这个模板的新手,只是在玩这个框架。我有一个新的 Angular 和 ASP.NET 核心应用程序,但我无法删除角色、用户或租户。在 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"
我该如何解决这个问题?
在最近的 abp 版本中,如果被触发两次,sweet alert 会抛出异常。所以你可能会陷入这种情况。删除用户会显示带有甜蜜警报的确认对话框。如果服务器端出现问题,则会显示一个新的甜蜜警报。所以你要做的就是将甜蜜警报更新到最新。
见 https://github.com/aspnetboilerplate/aspnetboilerplate/pull/2694
ABP版本:3.2.4
我是这个模板的新手,只是在玩这个框架。我有一个新的 Angular 和 ASP.NET 核心应用程序,但我无法删除角色、用户或租户。在 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"
我该如何解决这个问题?
在最近的 abp 版本中,如果被触发两次,sweet alert 会抛出异常。所以你可能会陷入这种情况。删除用户会显示带有甜蜜警报的确认对话框。如果服务器端出现问题,则会显示一个新的甜蜜警报。所以你要做的就是将甜蜜警报更新到最新。 见 https://github.com/aspnetboilerplate/aspnetboilerplate/pull/2694