feat(admin-web): preserve template wizard entry source and refresh AI banner
- Carry `from=workspace` query from the workbench into the wizard so cancel and post-generate redirects return to the workbench instead of always landing on /articles/templates. - AppShell now resolves an effective navKey from `route.query.from`, so the sidebar highlight and breadcrumb track the entry source while inside the wizard. - Redesign the brand-info AI analyze CTA into a standalone banner with template-aware copy (default / product_review / research_report) and add the matching i18n keys. - Drop the unused 批量生成文章 button and its styling from the templates page. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
import {
|
||||
AppstoreOutlined,
|
||||
ArrowRightOutlined,
|
||||
BlockOutlined,
|
||||
ExperimentOutlined,
|
||||
FileTextOutlined,
|
||||
NodeIndexOutlined,
|
||||
@@ -458,10 +457,6 @@ function refreshRecords(): void {
|
||||
<p>{{ t('route.templates.description') }}</p>
|
||||
</div>
|
||||
<div class="templates-view__header-actions">
|
||||
<a-button class="batch-generate-btn">
|
||||
<template #icon><BlockOutlined /></template>
|
||||
{{ t('templates.actions.batchGenerate') }}
|
||||
</a-button>
|
||||
<a-button type="primary" class="templates-view__create-btn" @click="openTemplatePicker">
|
||||
<template #icon><PlusOutlined /></template>
|
||||
{{ t('templates.actions.chooseTemplate') }}
|
||||
@@ -796,11 +791,6 @@ function refreshRecords(): void {
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.batch-generate-btn {
|
||||
color: #1677ff;
|
||||
border-color: #1677ff;
|
||||
}
|
||||
|
||||
.templates-view__filters {
|
||||
padding: 20px 24px;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user