|
|
@@ -48,21 +48,6 @@
|
|
|
</a-button>
|
|
|
</div>
|
|
|
|
|
|
- <!-- 工作目录:**由代码决定**(案件工作空间 / 客户端默认目录),界面只读展示,不可修改 -->
|
|
|
- <div class="codex-workspace">
|
|
|
- <div class="codex-workspace__head">
|
|
|
- <Icon icon="mdi:folder-outline" :size="14" />
|
|
|
- <span>工作目录</span>
|
|
|
- <span class="codex-workspace__source" :class="`is-${cwdSource}`">{{ cwdSourceLabel }}</span>
|
|
|
- </div>
|
|
|
- <div class="codex-workspace__path" :title="store.activeCwd || '未设置'">
|
|
|
- {{ store.activeCwd || '未设置(将使用客户端默认目录)' }}
|
|
|
- </div>
|
|
|
- <span class="codex-workspace__tip">
|
|
|
- 目录由当前案件的工作空间自动决定,无需手动选择;新建会话后生效。
|
|
|
- </span>
|
|
|
- </div>
|
|
|
-
|
|
|
<ol class="codex-empty__list">
|
|
|
<li v-for="(item, idx) in EXAMPLES" :key="item" class="codex-empty__item">
|
|
|
<span class="codex-empty__index">{{ idx + 1 }}</span>
|
|
|
@@ -171,20 +156,7 @@
|
|
|
const composerDisabled = computed(() => !store.bridgeAvailable || !store.ready);
|
|
|
|
|
|
const reportTitle = computed(() => store.activeSession?.title || 'Codex 会话');
|
|
|
- const caseName = computed(() => String(userStore.getCaseInfo?.name || ''));
|
|
|
-
|
|
|
- /** 当前工作目录来源:让用户一眼看出「为什么用的是这个目录」 */
|
|
|
- const cwdSource = computed(() => store.activeCwdSource);
|
|
|
- const cwdSourceLabel = computed(() => {
|
|
|
- switch (cwdSource.value) {
|
|
|
- case 'session':
|
|
|
- return '当前会话';
|
|
|
- case 'case':
|
|
|
- return caseName.value ? `案件工作空间 · ${caseName.value}` : '案件工作空间';
|
|
|
- default:
|
|
|
- return '客户端默认';
|
|
|
- }
|
|
|
- });
|
|
|
+
|
|
|
|
|
|
const gateHint = computed(() => {
|
|
|
if (store.runtimeError) return store.runtimeError;
|
|
|
@@ -369,65 +341,4 @@
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- /* 工作目录卡片 */
|
|
|
- .codex-workspace {
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- flex-wrap: wrap;
|
|
|
- gap: var(--codex-sp-2);
|
|
|
- margin: 0 0 var(--codex-sp-4);
|
|
|
- padding: var(--codex-sp-1) var(--codex-sp-3);
|
|
|
- background: var(--codex-bg-subtle);
|
|
|
- border: 1px solid var(--codex-border);
|
|
|
- border-radius: var(--codex-radius);
|
|
|
-
|
|
|
- &__head {
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- gap: 6px;
|
|
|
- flex: 0 0 auto;
|
|
|
- font-size: 12px;
|
|
|
- font-weight: 600;
|
|
|
- color: var(--codex-text-2);
|
|
|
- }
|
|
|
-
|
|
|
- /* 目录来源徽标:案件工作空间 / 手动指定 / 客户端默认 */
|
|
|
- &__source {
|
|
|
- padding: 0 6px;
|
|
|
- font-size: 10.5px;
|
|
|
- font-weight: 400;
|
|
|
- line-height: 16px;
|
|
|
- color: var(--codex-text-2);
|
|
|
- background: var(--codex-bg-hover);
|
|
|
- border-radius: 8px;
|
|
|
-
|
|
|
- &.is-case {
|
|
|
- color: var(--codex-primary);
|
|
|
- background: var(--codex-primary-soft);
|
|
|
- }
|
|
|
-
|
|
|
- &.is-default {
|
|
|
- color: var(--codex-warning);
|
|
|
- background: fade(@warning-color, 12%);
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- &__path {
|
|
|
- flex: 1 1 200px;
|
|
|
- min-width: 0;
|
|
|
- overflow: hidden;
|
|
|
- font-size: 12px;
|
|
|
- color: var(--codex-text);
|
|
|
- white-space: nowrap;
|
|
|
- text-overflow: ellipsis;
|
|
|
- direction: rtl;
|
|
|
- text-align: left;
|
|
|
- }
|
|
|
-
|
|
|
- &__tip {
|
|
|
- flex: 0 0 auto;
|
|
|
- font-size: 11px;
|
|
|
- color: var(--codex-text-3);
|
|
|
- }
|
|
|
- }
|
|
|
</style>
|