Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
启动后生成的文件:
直接修改这个文件的value
过一会儿自动就恢复成初始状态了
你要让用户可以编辑的话,就不应该用 AutoSavePluginData,应该用 ReadOnlyPluginData / ReadOnlyPluginConfig,否则配置将会定期自动保存覆盖掉用户的修改
AutoSavePluginData
ReadOnlyPluginData
ReadOnlyPluginConfig
@MrXiaoM 好的,我试试
@MrXiaoM 如果说,我让用户自己配置,然后我升级版本,增加了配置。怎么把新增的配置写入呢
@Danile0
和 reload 相对的,有一个主动的 save
@cssxsh 可以了,谢谢