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]