diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2023-02-05 20:29:10 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2023-02-05 20:29:10 +0900 |
| commit | 5f3640c7fd88a98d3c278e17d4bd91b836962395 (patch) | |
| tree | ac3bbb71a2537ffd7f234175773e572397aaea6f /packages/frontend/src/widgets/WidgetButton.vue | |
| parent | 単なるラッキーの獲得確立を調整 (diff) | |
| download | sharkey-5f3640c7fd88a98d3c278e17d4bd91b836962395.tar.gz sharkey-5f3640c7fd88a98d3c278e17d4bd91b836962395.tar.bz2 sharkey-5f3640c7fd88a98d3c278e17d4bd91b836962395.zip | |
fix(client): validate input response in aiscript
Diffstat (limited to 'packages/frontend/src/widgets/WidgetButton.vue')
| -rw-r--r-- | packages/frontend/src/widgets/WidgetButton.vue | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/packages/frontend/src/widgets/WidgetButton.vue b/packages/frontend/src/widgets/WidgetButton.vue index 63e8e485e1..6c2c366aa2 100644 --- a/packages/frontend/src/widgets/WidgetButton.vue +++ b/packages/frontend/src/widgets/WidgetButton.vue @@ -60,7 +60,11 @@ const run = async () => { os.inputText({ title: q, }).then(({ canceled, result: a }) => { - ok(a); + if (canceled) { + ok(''); + } else { + ok(a); + } }); }); }, |