Skip to content

Improve marketplace theme update #14128

Closed
@TCOTC

Description

@TCOTC

更新主题之后主题的 JS 版本号错误、CSS 没有更新

  • JS 有正常执行,但不知道有没有更新版本。以及版本号是错的(视频里变成了 ?v=3.1.22.11
  • CSS 没更新(更新主题后样式完全没变化,要重载界面才生效)

顺便给个我主题的旧版包:Whisper.zip

video.webm

Activity

changed the title [-]更新主题之后主题的 CSS 不会更新,重载界面之后才会更新[/-] [+]更新主题之后主题的 JS 版本号错误、CSS 没有更新[/+] on Feb 17, 2025
88250

88250 commented on Feb 19, 2025

@88250
Member

可能是因为 3.1.22.11 版本号不符合语义化版本号的原因?你观察下后面还有没有这个问题。

TCOTC

TCOTC commented on Feb 19, 2025

@TCOTC
ContributorAuthor

我 1.1.0 更新 1.2.0 也是有问题

added this to the 3.1.24 milestone on Feb 19, 2025
added a commit that references this issue on Feb 19, 2025
TCOTC

TCOTC commented on Feb 19, 2025

@TCOTC
ContributorAuthor

所以在版本号字符串后面加个 1 是故意的吗?为什么不是直接用新的版本号替换旧的?

Vanessa219

Vanessa219 commented on Feb 19, 2025

@Vanessa219
Member

这样比较方便一点,而且只是临时的。

TCOTC

TCOTC commented on Feb 19, 2025

@TCOTC
ContributorAuthor

我还想通过 href 属性判断当前版本的说,能不能改改?

modified the milestones: 3.1.24, 3.1.23 on Feb 19, 2025
changed the title [-]更新主题之后主题的 JS 版本号错误、CSS 没有更新[/-] [+]Improve marketplace theme update[/+] on Feb 19, 2025
added a commit that references this issue on Feb 19, 2025
Vanessa219

Vanessa219 commented on Feb 19, 2025

@Vanessa219
Member

已改,可更新看看。

TCOTC

TCOTC commented on Feb 19, 2025

@TCOTC
ContributorAuthor

可以了

TCOTC

TCOTC commented on Feb 19, 2025

@TCOTC
ContributorAuthor

不过这里的实现为什么一个是移除再添加,一个是替换?

Image

Vanessa219

Vanessa219 commented on Feb 19, 2025

@Vanessa219
Member

js 需要移除

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@Vanessa219@TCOTC

      Issue actions

        Improve marketplace theme update · Issue #14128 · siyuan-note/siyuan