refactor(client): refactor dialog functions to improve type inference
This commit is contained in:
parent
63415f1074
commit
ea9aeef9d8
84 changed files with 415 additions and 460 deletions
|
|
@ -29,7 +29,7 @@ export default defineComponent({
|
|||
click() {
|
||||
if (this.block.action === 'dialog') {
|
||||
this.hpml.eval();
|
||||
os.dialog({
|
||||
os.alert({
|
||||
text: this.hpml.interpolate(this.block.content)
|
||||
});
|
||||
} else if (this.block.action === 'resetRandom') {
|
||||
|
|
@ -44,7 +44,7 @@ export default defineComponent({
|
|||
} : {})
|
||||
});
|
||||
|
||||
os.dialog({
|
||||
os.alert({
|
||||
type: 'success',
|
||||
text: this.hpml.interpolate(this.block.message)
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue