You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
changed the title [-]Add an internal kernel API `/api/av/reloadAttributeView`[/-][+]Add an internal kernel API `/api/editor/reloadAttributeView`[/+]on Apr 1, 2025
changed the title [-]Add an internal kernel API `/api/editor/reloadAttributeView`[/-][+]Add an internal kernel API `/api/ui/reloadAttributeView`[/+]on Apr 1, 2025
@88250 调用使用{ id: blockId } ,返回错误
reloading attribute view: SyntaxError: Failed to execute 'json' on 'Response': Unexpected end of JSON input
at reloadAttributeView (eval at runJsCode (plugin:sy-run-js:1:1), :21:35)
response 里面只有一个1,是我调用的问题吗?
Activity
🧑💻 Add an internal kernel API `/api/av/reloadAttributeView` #14491
wish5115 commentedon Apr 1, 2025
建议再加个重新加载文档树吧 /api/filetree/reloadFiletree,比如A端更新了树样式,希望B端同步后,重新生成文档树
目前的做法是 B 端一个个遍历重放,比较麻烦。
[-]Add an internal kernel API `/api/av/reloadAttributeView`[/-][+]Add an internal kernel API `/api/editor/reloadAttributeView`[/+]88250 commentedon Apr 1, 2025
收到,请关注 #14493
[-]Add an internal kernel API `/api/editor/reloadAttributeView`[/-][+]Add an internal kernel API `/api/ui/reloadAttributeView`[/+]🧑💻 Add an internal kernel API `/api/av/reloadAttributeView` #14491
wish5115 commentedon Apr 1, 2025
收到
Danielypzhang commentedon Apr 12, 2025
@88250 调用使用{ id: blockId } ,返回错误
reloading attribute view: SyntaxError: Failed to execute 'json' on 'Response': Unexpected end of JSON input
at reloadAttributeView (eval at runJsCode (plugin:sy-run-js:1:1), :21:35)
response 里面只有一个1,是我调用的问题吗?
88250 commentedon Apr 12, 2025
reloadAttributeView 的 id 参数是 av id,不是 block id
Danielypzhang commentedon Apr 12, 2025
谢谢回复。参数是avID, network如下:
88250 commentedon Apr 12, 2025
看下内核日志是否有报错
Danielypzhang commentedon Apr 12, 2025
run JS 调用function,日志没有任何变化,没有记录。最近的log都是information.

88250 commentedon Apr 12, 2025
看下 response headers