feat(common-tools): 工具台新增常用工具分类,三个桌面工具网页化
- tool-catalog 最前插入「常用工具」组(brand_common_tools,23 工具·4 大分类), 三工具各自权限键:pricing-calc / five-asin / keyword-share - /pricing-calc:站点(英 GBP÷9、德法 EUR÷8)+ 买货价/运费 → 营业额/利润/ 利润率/换算汇率,公式与精度照抄桌面版,纯函数 node --test 钉住 - /five-asin:五国常量 + ASIN 10 位校验 → 亚马逊商品链接,window.open 与 :href 出口全部过 safeHttpUrl(url-outlet 棘轮),邮编一键复制 - /keyword-share:筛选/四级类目级联/统计卡/表格分页 200/标记与取消使用/ 添加/删除/随机抽词/共享记录,对接 keywordshare 后端九端点 - 顶栏与 BrandTopBar 导航同步;router 注册三路由;补 test:mount 脚本 (vitest mount 套件入口,与后管同口径)
This commit is contained in:
@@ -122,6 +122,22 @@ const routes = [
|
||||
name: 'withdraw',
|
||||
component: () => import('@/pages/brand/components/BrandWithdrawTab.vue'),
|
||||
},
|
||||
// ---- 常用工具(网页化的桌面小工具;权限键与 tool-catalog / BrandTopBar 一致)----
|
||||
{
|
||||
path: '/pricing-calc',
|
||||
name: 'pricing-calc',
|
||||
component: () => import('@/pages/common/PricingCalcPage.vue'),
|
||||
},
|
||||
{
|
||||
path: '/five-asin',
|
||||
name: 'five-asin',
|
||||
component: () => import('@/pages/common/FiveAsinPage.vue'),
|
||||
},
|
||||
{
|
||||
path: '/keyword-share',
|
||||
name: 'keyword-share',
|
||||
component: () => import('@/pages/common/KeywordSharePage.vue'),
|
||||
},
|
||||
// ---- 兜底:未匹配路径回首页(保持与 MPA 时代"未知页 404 后回首页"一致体验)----
|
||||
{ path: '/:pathMatch(.*)*', redirect: '/home' },
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user