From c15f0ce2297d85d73db14ab19c4f9a4761efb6c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E8=87=AA=E8=BE=BE?= <980324341@qq.com> Date: Tue, 17 Nov 2026 21:17:18 +0800 Subject: [PATCH] =?UTF-8?q?fix(jd):=20=E9=87=87=E9=9B=86=E5=88=86=E7=B1=BB?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E5=8F=A3=E5=BE=84=E6=94=B9=E3=80=8C=E5=85=A8?= =?UTF-8?q?=E5=BA=97=E9=87=87=E9=9B=86=E3=80=8D=E2=80=94=E2=80=94=E5=8D=A0?= =?UTF-8?q?=E4=BD=8D=E7=AC=A6=E5=8E=BB=E3=80=8C=E4=B8=8D=E9=80=89=EF=BC=9D?= =?UTF-8?q?=E3=80=8D=E6=94=B9=E3=80=8C=E5=85=A8=E5=BA=97=E9=87=87=E9=9B=86?= =?UTF-8?q?=EF=BC=88=E7=82=B9=E5=87=BB=E9=80=89=E6=8B=A9=E5=88=86=E7=B1=BB?= =?UTF-8?q?=EF=BC=89=E3=80=8D=E3=80=81=E6=9C=AA=E9=80=89=E4=B8=AD=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=E6=94=B9=E3=80=8C=E9=BB=98=E8=AE=A4=E5=85=A8=E5=BA=97?= =?UTF-8?q?=E9=87=87=E9=9B=86=E3=80=82=E3=80=8D=EF=BC=882026-11-17=20?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E5=8F=A3=E5=BE=84=E3=80=8C=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E5=85=A8=E5=BA=97=E9=87=87=E9=9B=86=EF=BC=8C=E4=B8=8D=E8=A6=81?= =?UTF-8?q?=E5=86=99=E4=B8=8D=E9=80=89=3D=E5=85=A8=E5=BA=97=E9=87=87?= =?UTF-8?q?=E9=9B=86=E3=80=8D=EF=BC=9B=E9=80=89=E6=8B=A9=E8=A1=8C=E4=B8=BA?= =?UTF-8?q?=E9=9B=B6=E6=94=B9=E5=8A=A8=EF=BC=8C=E7=A9=BA=E6=95=B0=E7=BB=84?= =?UTF-8?q?=EF=BC=9D=E5=85=A8=E5=BA=97=E9=87=87=E9=9B=86=E7=9A=84=E4=B8=89?= =?UTF-8?q?=E5=A4=84=E5=90=8C=E9=94=AE=E5=A5=91=E7=BA=A6=E4=B8=8D=E5=8A=A8?= =?UTF-8?q?=EF=BC=89=E3=80=82=E5=88=A4=E6=8D=AE=EF=BC=9Avitest=20=E6=8C=82?= =?UTF-8?q?=E8=BD=BD=20jd-collect-progress=2010=20=E4=BE=8B=E5=85=A8?= =?UTF-8?q?=E7=BB=BF=EF=BC=88=E5=90=AB=E6=96=B0=E5=8D=A0=E4=BD=8D=E7=AC=A6?= =?UTF-8?q?=20prop=20=E9=92=89=E4=B8=8E=E6=B8=85=E7=A9=BA=E6=81=A2?= =?UTF-8?q?=E5=A4=8D=E6=96=AD=E8=A8=80=EF=BC=89=EF=BC=8Bvue-tsc=20rc=3D0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend-vue/src/pages/jd/JdCollectTab.vue | 4 ++-- frontend-vue/tests/mount/jd-collect-progress.mount.test.ts | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/frontend-vue/src/pages/jd/JdCollectTab.vue b/frontend-vue/src/pages/jd/JdCollectTab.vue index cd21b6dad..54db790f2 100644 --- a/frontend-vue/src/pages/jd/JdCollectTab.vue +++ b/frontend-vue/src/pages/jd/JdCollectTab.vue @@ -414,14 +414,14 @@ onUnmounted(() => {
{{ selectedShopCategoryValues.length ? `只采选中 ${selectedShopCategoryValues.length} 个分类的商品;` - : '不选=全店采集。' }} + : '默认全店采集。' }} 分类是京麦后台「店内分类」(2026-11-16 快照);商品要先在京麦挂上分类才会被选中。 diff --git a/frontend-vue/tests/mount/jd-collect-progress.mount.test.ts b/frontend-vue/tests/mount/jd-collect-progress.mount.test.ts index e5da7aec9..2eb66882d 100644 --- a/frontend-vue/tests/mount/jd-collect-progress.mount.test.ts +++ b/frontend-vue/tests/mount/jd-collect-progress.mount.test.ts @@ -344,7 +344,8 @@ describe('获取店铺数据:一键采集 + 任务面板', () => { // 弹层 teleport 到 body,选项组件仍挂在页面组件树里,按组件计数不按 DOM) expect(w.findAllComponents(ElOption).length).toBe(9) expect(block!.find('.shop-cat-select').exists(), '分类块必须是 el-select 下拉').toBe(true) - expect(block!.text()).toContain('不选=全店采集') + expect(block!.text()).toContain('默认全店采集') + expect(block!.findComponent(ElSelect).props('placeholder')).toBe('全店采集(点击选择分类)') const select = block!.findComponent(ElSelect) await select.vm.$emit('update:modelValue', ['1024347567']) @@ -353,6 +354,6 @@ describe('获取店铺数据:一键采集 + 任务面板', () => { expect(block!.find('.shop-cat-clear').exists(), '选中后出「清空」').toBe(true) await block!.find('.shop-cat-clear').trigger('click') await flushPromises() - expect(block!.text()).toContain('不选=全店采集') + expect(block!.text()).toContain('默认全店采集') }) })