fix(ui): shellTool not changed when trigger init

This commit is contained in:
ReaJason
2025-11-20 00:36:25 +08:00
parent 69ef9ab230
commit c495ef46a4
3 changed files with 19 additions and 22 deletions
BIN
View File
Binary file not shown.
+14 -14
View File
@@ -15,37 +15,37 @@
},
"devDependencies": {
"@biomejs/biome": "2.1.4",
"@react-router/dev": "^7.8.2",
"@types/node": "^24.3.0",
"@types/react": "^19.1.12",
"@react-router/dev": "^7.9.1",
"@types/node": "^24.5.2",
"@types/react": "^19.1.13",
"@types/react-copy-to-clipboard": "^5.0.7",
"@types/react-dom": "^19.1.9",
"@types/react-syntax-highlighter": "^15.5.13",
"@vitejs/plugin-react": "^5.0.2",
"@vitejs/plugin-react": "^5.0.3",
"rimraf": "^6.0.1",
"tailwindcss": "^4.1.12",
"tailwindcss": "^4.1.13",
"typescript": "^5.9.2",
"vite": "^7.1.4",
"vite": "^7.1.6",
"vite-bundle-visualizer": "^1.2.1"
},
"dependencies": {
"@hookform/resolvers": "^5.2.1",
"@tailwindcss/vite": "^4.1.12",
"@tanstack/react-query": "^5.85.9",
"@hookform/resolvers": "^5.2.2",
"@tailwindcss/vite": "^4.1.13",
"@tanstack/react-query": "^5.89.0",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"framer-motion": "^12.23.12",
"i18next": "^25.4.2",
"framer-motion": "^12.23.16",
"i18next": "^25.5.2",
"lucide-react": "^0.539.0",
"motion": "^12.23.12",
"motion": "^12.23.16",
"radix-ui": "^1.4.3",
"react": "^19.1.1",
"react-copy-to-clipboard": "^5.1.0",
"react-dom": "^19.1.1",
"react-hook-form": "^7.62.0",
"react-i18next": "^15.7.3",
"react-router": "^7.8.2",
"react-router-dom": "^7.8.2",
"react-router": "^7.9.1",
"react-router-dom": "^7.9.1",
"react-syntax-highlighter": "^15.6.6",
"sonner": "^2.0.7",
"tailwind-merge": "^3.3.1",
@@ -386,19 +386,16 @@ export default function MainConfigCard({
</div>
</CardContent>
</Card>
<Tabs
value={shellTool}
onValueChange={(v) => {
handleShellToolChange(v);
}}
className="w-full"
>
<Tabs value={shellTool} className="w-full">
<FormField
control={form.control}
name="shellTool"
render={({ field }) => (
<FormItem>
<Select onValueChange={field.onChange} defaultValue={field.value}>
<Select
value={field.value}
onValueChange={(v) => handleShellToolChange(v)}
>
<FormControl>
<SelectTrigger>
<SelectValue />