feat: 内容管理

This commit is contained in:
2025-10-29 17:10:53 +08:00
parent 476ee7a754
commit 4c628fee22
67 changed files with 8210 additions and 4494 deletions

View File

@@ -20,6 +20,7 @@ const Settings: ProLayoutProps & {
logo: '/logo.svg',
iconfontUrl: '',
splitMenus: true,
token: {
// 参见ts声明demo 见文档通过token 修改样式
// 设置内容区域的边距

View File

@@ -13,13 +13,10 @@ export default {
// 如果需要自定义本地开发服务器 请取消注释按需调整
dev: {
// localhost:8000/api/** -> https://preview.pro.ant.design/api/**
"/admin-api/": {
// 要代理的地址
'/admin-api/': {
// http://192.168.1.231:48080 伟强
// https://petshy.tashowz.com/
target: "https://petshy.tashowz.com/",
// 配置了这个可以从 http 代理到 https
// 依赖 origin 的功能可能需要这个,比如 cookie
target: 'https://petshy.tashowz.com',
changeOrigin: true,
},
},
@@ -29,17 +26,17 @@ export default {
*/
test: {
// localhost:8000/api/** -> https://preview.pro.ant.design/api/**
"/api/": {
target: "https://petshy.tashowz.com/",
'/api/': {
target: 'https://petshy.tashowz.com/',
changeOrigin: true,
pathRewrite: { "^": "" },
pathRewrite: { '^': '' },
},
},
pre: {
"/api/": {
target: "your pre url",
'/api/': {
target: 'https://petshy.tashowz.com/',
changeOrigin: true,
pathRewrite: { "^": "" },
pathRewrite: { '^': '' },
},
},
};

View File

@@ -34,35 +34,26 @@ export default [
path: '/',
redirect: '/welcome',
},
{
path: '/trade',
name: '交易管理',
routes: [
{
name: '订单管理',
path: '/trade/order',
component: './trade/order/index',
},
],
},
// {
// path: "/trade",
// name: "交易管理",
// routes: [
// {
// name: "订单管理",
// path: "/trade/order",
// component: "./trade/order/index",
// },
// ],
// },
{
path: '/prod1',
name: '商品管理1',
path: '/ai1',
name: 'AI1',
routes: [
{
path: '', // 空路径,匹配 /prod
redirect: 'list', // 相对路径重定向
},
{
name: '商品1',
path: '/prod1/list',
component: './prod/list/index',
},
{
name: '类目管理',
path: '/prod1/category',
component: './prod/category/index',
name: 'ai样本',
path: '/ai1/tag',
component: './ai/sample-tag',
},
],
},
@@ -77,6 +68,26 @@ export default [
// },
// ],
// },
// {
// path: "/prod1",
// name: "商品管理2",
// routes: [
// // { index: true, component: "./prod/list/index" },
// {
// name: "商品管理",
// path: "list",
// component: "./prod/list/index",
// routes: [
// {
// name: "类目管理",
// path: "detail",
// component: "./prod/category/index",
// hideInMenu: true,
// },
// ],
// },
// ],
// },
{
component: '404',
layout: false,