From 0d798c2fbc0cb4375d9feebd0d27c0f99a43e927 Mon Sep 17 00:00:00 2001 From: xiezhouwei Date: Fri, 19 Jun 2026 10:37:41 +0800 Subject: [PATCH] fix: convert model_type URL param to number so Select matches optionList value type --- web/src/pages/Playground/index.jsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/web/src/pages/Playground/index.jsx b/web/src/pages/Playground/index.jsx index 465012e..6811b21 100644 --- a/web/src/pages/Playground/index.jsx +++ b/web/src/pages/Playground/index.jsx @@ -591,7 +591,10 @@ const Playground = () => { const modelParam = searchParams.get('model'); const modelTypeParam = searchParams.get('model_type'); if (modelTypeParam) { - handleInputChange('model_type', modelTypeParam); + const v = Number(modelTypeParam); + if (!Number.isNaN(v)) { + handleInputChange('model_type', v); + } } if (modelParam) { handleInputChange('model', modelParam);