Files
msh-system/msh_single_admin/src/router/modules/content.js
msh-agent a3b609e70a fix(food-encyclopedia): 后台食物百科列表/编辑页接入并修复图片URL双前缀
- 新增 FoodEncyclopediaController 及 ToolFoodAdminService,提供 /api/admin/tool/food/* CRUD
- ToolFoodAdminServiceImpl 在保存前 clearPrefix 并正则修复历史脏数据中的多层 host 前缀
- 前端 list.vue/edit.vue 修复二次解包导致 listData.list 渲染崩溃
- edit.vue 加载详情时兜底归一化 image 字段,处理 https://host//https://host//crmebimage/... 形式
- content.js 注册 foodManager / foodEdit 路由

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-03 01:08:34 +08:00

74 lines
2.0 KiB
JavaScript
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// +----------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者助力企业发展 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2016~2025 https://www.crmeb.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件未经许可不能去掉CRMEB相关版权
// +----------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com>
// +----------------------------------------------------------------------
import Layout from '@/layout';
const contentRouter = {
path: '/content',
component: Layout,
redirect: '/content/articleManager',
name: 'content',
meta: {
title: '内容',
icon: 'clipboard',
},
children: [
{
path: 'articleManager',
name: 'articleManager',
component: () => import('@/views/content/article/list'),
meta: {
title: '文章管理',
icon: 'clipboard',
},
},
{
path: 'articleCreat/:id?',
name: 'articleCreat',
component: () => import('@/views/content/article/edit'),
meta: {
title: '添加文章',
noCache: true,
activeMenu: `/content/articleManager`,
},
},
{
path: 'classifManager',
name: 'classifManager',
component: () => import('@/views/content/articleclass/list'),
meta: {
title: '文章分类',
icon: 'clipboard',
},
},
{
path: 'foodManager',
name: 'foodManager',
component: () => import('@/views/content/food/list'),
meta: {
title: '食物百科',
icon: 'clipboard',
},
},
{
path: 'foodEdit/:id?',
name: 'foodEdit',
component: () => import('@/views/content/food/edit'),
meta: {
title: '编辑食物',
noCache: true,
activeMenu: '/content/foodManager',
},
},
],
};
export default contentRouter;