ai-coding
2026-08-07 b152dd782eac9bedef38f6d69006d01fae61e1cf
feat(coupon-detail-tab): 同步优惠券详情页签标题并移除列表直达入口

Co-Authored-By: 祝美莲 <zhuml4@xiaopeng.com>
1 文件已重命名
4个文件已修改
26 ■■■■■ 已修改文件
.kiro/lark-wiki-dev_084245/specs/requirements.md 补丁 | 查看 | 原始文档 | blame | 历史
locales/en_US.json 1 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
locales/zh_CN.json 1 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/userContent/active/coupon/add.vue 17 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/userContent/active/coupon/index.vue 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
.kiro/lark-wiki-dev_084245/specs/requirements.md
locales/en_US.json
@@ -322,7 +322,6 @@
    "opsAppContent": "运维APP内容管理",
    "contentCenterActive": "活动",
    "contentCenterConpon": "优惠券管理",
    "contentCenterConponAdd": "添加优惠券",
    "bannerManagement": "Banner管理",
    "businessOperations": "运营&城市",
    "openCity": "开通城市管理",
locales/zh_CN.json
@@ -322,7 +322,6 @@
    "opsAppContent": "运维APP内容管理",
    "contentCenterActive": "活动",
    "contentCenterConpon": "优惠券管理",
    "contentCenterConponAdd": "添加优惠券",
    "bannerManagement": "Banner管理",
    "businessOperations": "运营&城市",
    "openCity": "开通城市管理",
src/views/userContent/active/coupon/add.vue
@@ -2,6 +2,7 @@
import noDataImg from '@/assets/element-img/no-data.png'
import { computed, onMounted, ref, watch } from 'vue'
import { useRoute, useRouter } from 'vue-router'
import type { RouteLocationNormalized } from 'vue-router'
import type { FormInst, FormRules } from 'naive-ui'
import { useDialog, useMessage } from 'naive-ui'
import AiRichTextEditor from '@/components/custom/Editor/AiRichTextEditor/index.vue'
@@ -477,9 +478,25 @@
  }
}
function syncPageTitle() {
  route.meta.title = pageTitle.value
  document.title = pageTitle.value
  const fullPath = route.fullPath
  tabStore.modifyTab(fullPath, (tab: RouteLocationNormalized) => {
    if (tab)
      tab.meta.title = pageTitle.value
  })
}
watch(() => route.fullPath, () => {
  syncPageTitle()
}, { immediate: true })
onMounted(() => {
  getDetail().finally(() => {
    initialSnapshot.value = getSnapshot()
    syncPageTitle()
  })
})
src/views/userContent/active/coupon/index.vue
@@ -412,12 +412,7 @@
    width: 260,
    ellipsis: true,
    resizable: true,
    // 名称做成入口链接,点击直达详情;.n-button 已在行点击忽略名单里,不会连带勾选当前行
    render: row => (
      <NButton text type="primary" onClick={() => handleDetail(row)}>
        {row.couponName || '-'}
      </NButton>
    ),
    render: row => row.couponName || '-',
  },
  {
    title: '优惠券类型',