修改take()的获取值方法

This commit is contained in:
浔阳陌客 2024-04-25 21:16:28 +08:00
parent 587d5f2112
commit 7a46168ed2
2 changed files with 16 additions and 17 deletions

View file

@ -246,11 +246,9 @@ export default class PluginSample extends Plugin {
step: 1,
},
action:{
// The callback is called after the action of Silder changes,
// so it should be the this.settingUtils.get() method.
callback: () => {
// Read data in real time
let value = this.settingUtils.get("Slider")
let value = this.settingUtils.take("Slider")
console.log(value);
}
}