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

Hrvoje Jursetic

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"

我怎样才能解决这个问题?

阿尔珀·埃比科格鲁

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

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章