Skip to content

Add an internal kernel API /api/ui/reloadAttributeView #14491

Closed
@88250

Description

@88250

Activity

added this to the 3.1.27 milestone on Apr 1, 2025
self-assigned this
on Apr 1, 2025
wish5115

wish5115 commented on Apr 1, 2025

@wish5115

建议再加个重新加载文档树吧 /api/filetree/reloadFiletree,比如A端更新了树样式,希望B端同步后,重新生成文档树

目前的做法是 B 端一个个遍历重放,比较麻烦。

changed the title [-]Add an internal kernel API `/api/av/reloadAttributeView`[/-] [+]Add an internal kernel API `/api/editor/reloadAttributeView`[/+] on Apr 1, 2025
88250

88250 commented on Apr 1, 2025

@88250
MemberAuthor

收到,请关注 #14493

changed the title [-]Add an internal kernel API `/api/editor/reloadAttributeView`[/-] [+]Add an internal kernel API `/api/ui/reloadAttributeView`[/+] on Apr 1, 2025
wish5115

wish5115 commented on Apr 1, 2025

@wish5115

收到,请关注 #14493

收到

Danielypzhang

Danielypzhang commented on Apr 12, 2025

@Danielypzhang

@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

88250 commented on Apr 12, 2025

@88250
MemberAuthor

reloadAttributeView 的 id 参数是 av id,不是 block id

Danielypzhang

Danielypzhang commented on Apr 12, 2025

@Danielypzhang

reloadAttributeView 的 id 参数是 av id,不是 block id

谢谢回复。参数是avID, network如下:

Image

Image

Image

88250

88250 commented on Apr 12, 2025

@88250
MemberAuthor

看下内核日志是否有报错

Danielypzhang

Danielypzhang commented on Apr 12, 2025

@Danielypzhang

run JS 调用function,日志没有任何变化,没有记录。最近的log都是information.
Image

88250

88250 commented on Apr 12, 2025

@88250
MemberAuthor

看下 response headers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @88250@wish5115@Danielypzhang

      Issue actions

        Add an internal kernel API `/api/ui/reloadAttributeView` · Issue #14491 · siyuan-note/siyuan