From 30bd46e8c4e275c2da5fbbdb2abbc061c83fc7d3 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Mon, 16 Mar 2026 15:55:15 +0800 Subject: [PATCH] bugfix --- wwwroot/new_instance.dspy | 27 +++++++++++++++++++++++++++ wwwroot/new_instance.ui | 1 + 2 files changed, 28 insertions(+) create mode 100644 wwwroot/new_instance.dspy diff --git a/wwwroot/new_instance.dspy b/wwwroot/new_instance.dspy new file mode 100644 index 0000000..c6c9e15 --- /dev/null +++ b/wwwroot/new_instance.dspy @@ -0,0 +1,27 @@ +id = await new_instance(request, params_kw.id, params_kw) +return { + "widgettype": "VBox", + "options": { + "width": "100%", + "height": "100%" + }, + "subwidgets": [ + { + "widgettype": "Text", + "options": { + "text": id, + "wrap": true, + "valign": "left" + } + }, + { + "widgettype": "Text", + "options": { + "i18n": true, + "otext": "实例创建完成", + "wrap": true, + "valign": "left" + } + } + ] +} diff --git a/wwwroot/new_instance.ui b/wwwroot/new_instance.ui index 7eb984b..a68d49a 100644 --- a/wwwroot/new_instance.ui +++ b/wwwroot/new_instance.ui @@ -14,6 +14,7 @@ "actiontype": "urlwidget", "target": "root.page_center", "options": { + "method": "POST", "url": "{{entire_url('new_instance.dspy')}}" } }