All checks were successful
Test / unit-test (push) Successful in 6s
Test / build-check (push) Successful in 4s
PR Preview / teardown-preview (pull_request) Has been skipped
Test / e2e-test (push) Successful in 2m58s
PR Preview / test (pull_request) Successful in 6s
PR Preview / deploy-preview (pull_request) Successful in 14s
- 新增套装方案对比页面(KitExport.vue),支持4个套装(芳香调理/家庭医生/居家呵护/全精油)的配方匹配和成本对比 - 按各精油原瓶价占比分摊套装总价,计算每滴套装成本 - 支持设置配方售价,自动计算利润率 - Excel导出完整版(含成分明细)和简版,含横向对比sheet - 抽取套装配置到共享config/kits.js,Inventory页复用 - 修复库存页模糊匹配bug(牛至错误匹配到牛至呵护) - 修正全精油套装列表(补芫荽叶/加州胡椒/罗马洋甘菊/道格拉斯冷杉/西班牙鼠尾草,修正广藿香/斯里兰卡肉桂皮名称) - 所有套装加入椰子油 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
70 lines
1.5 KiB
JavaScript
70 lines
1.5 KiB
JavaScript
import { createRouter, createWebHistory } from 'vue-router'
|
|
|
|
const routes = [
|
|
{
|
|
path: '/',
|
|
name: 'RecipeSearch',
|
|
component: () => import('../views/RecipeSearch.vue'),
|
|
},
|
|
{
|
|
path: '/manage',
|
|
name: 'RecipeManager',
|
|
component: () => import('../views/RecipeManager.vue'),
|
|
meta: { requiresAuth: true },
|
|
},
|
|
{
|
|
path: '/inventory',
|
|
name: 'Inventory',
|
|
component: () => import('../views/Inventory.vue'),
|
|
meta: { requiresAuth: true },
|
|
},
|
|
{
|
|
path: '/oils',
|
|
name: 'OilReference',
|
|
component: () => import('../views/OilReference.vue'),
|
|
},
|
|
{
|
|
path: '/projects',
|
|
name: 'Projects',
|
|
component: () => import('../views/Projects.vue'),
|
|
meta: { requiresAuth: true },
|
|
},
|
|
{
|
|
path: '/kit-export',
|
|
name: 'KitExport',
|
|
component: () => import('../views/KitExport.vue'),
|
|
meta: { requiresAuth: true },
|
|
},
|
|
{
|
|
path: '/mydiary',
|
|
name: 'MyDiary',
|
|
component: () => import('../views/MyDiary.vue'),
|
|
meta: { requiresAuth: true },
|
|
},
|
|
{
|
|
path: '/audit',
|
|
name: 'AuditLog',
|
|
component: () => import('../views/AuditLog.vue'),
|
|
meta: { requiresAuth: true },
|
|
},
|
|
{
|
|
path: '/bugs',
|
|
name: 'BugTracker',
|
|
component: () => import('../views/BugTracker.vue'),
|
|
meta: { requiresAuth: true },
|
|
},
|
|
{
|
|
path: '/users',
|
|
name: 'UserManagement',
|
|
component: () => import('../views/UserManagement.vue'),
|
|
meta: { requiresAuth: true },
|
|
},
|
|
]
|
|
|
|
const router = createRouter({
|
|
history: createWebHistory(),
|
|
routes,
|
|
})
|
|
|
|
export default router
|