From c98bd6c919bda4cd52c1f37fd85fd703632e4d6a Mon Sep 17 00:00:00 2001
From: jiangchen <1703935164@qq.com>
Date: Tue, 1 Sep 2026 23:15:38 +0800
Subject: [PATCH] fix: selector rows clickable via inner text (cycleConv); new
session opens workspace picker (reserve new-workspace)
---
src/pages/index/index.ux | 20 +++++++++++++++-----
1 file changed, 15 insertions(+), 5 deletions(-)
diff --git a/src/pages/index/index.ux b/src/pages/index/index.ux
index 6b8e200..e80c282 100644
--- a/src/pages/index/index.ux
+++ b/src/pages/index/index.ux
@@ -10,9 +10,9 @@
工作区
📁 {{$item.name}}
-
-
{{$item.title}}
-
{{$item.time}}
+
+ {{$item.title}}
+ {{$item.time}}
@@ -354,8 +354,12 @@ export default {
},
newSession() {
- this.currentConv = '新会话'
- this.currentIndex = 1
+ // 弹出选择工作区小窗(预留:后续可从电脑目录/插件串流新建工作区)
+ this.pickerTitle = '选择工作区'
+ this.pickerTarget = 'ws'
+ this.pickerOptions = this.workTree.map((w) => w.name)
+ this.pickerIndex = 0
+ this.showOptionPicker = true
},
cycleConv() {
@@ -457,6 +461,12 @@ export default {
applyPicker() {
const t = this.pickerTarget
if (!t) return this.showOptionPicker = false
+ if (t === 'ws') {
+ // 预留:新建工作区(后续让插件串流电脑目录,这里先占位)
+ this.currentConv = '新会话'
+ this.showOptionPicker = false
+ return
+ }
const values = { model:'modelValue', provider:'providerValue', reason:'reasonValue', perm:'permValue', dialog:'dialogModeValue', conn:'watchConnValue', server:'serverValue' }
this[t + 'Idx'] = this.pickerIndex
this[values[t]] = this.pickerOptions[this.pickerIndex]