本帖最后由 Pluto丶 于 2024-6-24 15:28 编辑
如图,添加导出和打印权限后点保存,没有生效。报错如下:
{
"data": null,
"errors": [
{
"ClassName": "GraphQL.Execution.UnhandledError",
"Message": "Error trying to resolve field 'updatePermissions'.",
"Data": {},
"InnerException": {
"ClassName": "System.InvalidOperationException",
"Message": "Cannot access a disposed context instance. A common cause of this error is disposing a context instance that was resolved from dependency injection and then later trying to use the same context instance elsewhere in your application. This may occur if you are calling 'Dispose' on the context instance, or wrapping it in a using statement. If you are using dependency injection, you should let the dependency injection container take care of disposing context instances.\r\nObject name: 'StorageDbContext'.",
"Data": {},
"InnerException": null,
"HelpURL": null,
"StackTraceString": null,
"RemoteStackTraceString": null,
"RemoteStackIndex": 0,
"ExceptionMethod": null,
"HResult": -2146233079,
"Source": null,
"WatsonBuckets": null
},
"HelpURL": null,
"StackTraceString": null,
"RemoteStackTraceString": null,
"RemoteStackIndex": 0,
"ExceptionMethod": null,
"HResult": -2146233088,
"Source": null,
"WatsonBuckets": null
}
]
}
|