We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
schema.reactive() 用于声明修改后即刻保存的配置项。
schema.reactive()
Schema.object({ foo: Schema.string().reactive(), bar: Schema.string(), qux: Schema.object({ foo: Schema.string().reactive(), bar: Schema.string(), }), })
如果插件声明了上述的配置项,用户在控制台中修改配置时:
foo
qux.foo
bar
qux.bar
对应的插件实现中,应当使用 ctx.accept() 接受 foo 和 qux.foo 的改动,否则插件将会全量重载。
ctx.accept()
The text was updated successfully, but these errors were encountered:
No branches or pull requests
schema.reactive()
用于声明修改后即刻保存的配置项。如果插件声明了上述的配置项,用户在控制台中修改配置时:
foo
或者qux.foo
:直接同步到配置文件bar
或者qux.bar
:不同步到配置文件,需要手动点击「保存」或「启用」对应的插件实现中,应当使用
ctx.accept()
接受foo
和qux.foo
的改动,否则插件将会全量重载。The text was updated successfully, but these errors were encountered: