fix: make content api
This commit is contained in:
@@ -243,174 +243,174 @@ export const asyncRoutes = [
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
path: '/maomaotou',
|
// path: '/maomaotou',
|
||||||
component: Layout,
|
// component: Layout,
|
||||||
redirect: 'noRedirect',
|
// redirect: 'noRedirect',
|
||||||
name: 'CxshMini',
|
// name: 'CxshMini',
|
||||||
meta: { title: '猫猫头', icon: 'cat', permissions: ['admin'] },
|
// meta: { title: '猫猫头', icon: 'cat', permissions: ['admin'] },
|
||||||
children: [
|
// children: [
|
||||||
{
|
// {
|
||||||
path: 'cat',
|
// path: 'cat',
|
||||||
component: EmptyLayout,
|
// component: EmptyLayout,
|
||||||
alwaysShow: true,
|
// alwaysShow: true,
|
||||||
redirect: 'noRedirect',
|
// redirect: 'noRedirect',
|
||||||
name: 'cat',
|
// name: 'cat',
|
||||||
meta: {
|
// meta: {
|
||||||
title: '猫猫',
|
// title: '猫猫',
|
||||||
icon: 'cat',
|
// icon: 'cat',
|
||||||
permissions: ['admin'],
|
// permissions: ['admin'],
|
||||||
},
|
// },
|
||||||
children: [
|
// children: [
|
||||||
{
|
// {
|
||||||
path: 'cat',
|
// path: 'cat',
|
||||||
name: 'Cat',
|
// name: 'Cat',
|
||||||
component: () => import('@/views/maomao/cat/cat/index'),
|
// component: () => import('@/views/maomao/cat/cat/index'),
|
||||||
meta: { title: '猫猫' },
|
// meta: { title: '猫猫' },
|
||||||
},
|
// },
|
||||||
],
|
// ],
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
path: 'post',
|
// path: 'post',
|
||||||
component: EmptyLayout,
|
// component: EmptyLayout,
|
||||||
alwaysShow: true,
|
// alwaysShow: true,
|
||||||
redirect: 'noRedirect',
|
// redirect: 'noRedirect',
|
||||||
name: 'Post',
|
// name: 'Post',
|
||||||
meta: {
|
// meta: {
|
||||||
title: '帖子',
|
// title: '帖子',
|
||||||
icon: 'post',
|
// icon: 'post',
|
||||||
permissions: ['admin'],
|
// permissions: ['admin'],
|
||||||
},
|
// },
|
||||||
children: [
|
// children: [
|
||||||
{
|
// {
|
||||||
path: 'post',
|
// path: 'post',
|
||||||
name: 'Post',
|
// name: 'Post',
|
||||||
component: () => import('@/views/maomao/post/post/index'),
|
// component: () => import('@/views/maomao/post/post/index'),
|
||||||
meta: { title: '帖子' },
|
// meta: { title: '帖子' },
|
||||||
},
|
// },
|
||||||
],
|
// ],
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
path: 'user',
|
// path: 'user',
|
||||||
component: EmptyLayout,
|
// component: EmptyLayout,
|
||||||
alwaysShow: true,
|
// alwaysShow: true,
|
||||||
redirect: 'noRedirect',
|
// redirect: 'noRedirect',
|
||||||
name: 'User',
|
// name: 'User',
|
||||||
meta: {
|
// meta: {
|
||||||
title: '用户',
|
// title: '用户',
|
||||||
icon: 'user',
|
// icon: 'user',
|
||||||
permissions: ['admin'],
|
// permissions: ['admin'],
|
||||||
},
|
// },
|
||||||
children: [
|
// children: [
|
||||||
{
|
// {
|
||||||
path: 'user',
|
// path: 'user',
|
||||||
name: 'User',
|
// name: 'User',
|
||||||
component: () => import('@/views/maomao/user/user/index'),
|
// component: () => import('@/views/maomao/user/user/index'),
|
||||||
meta: { title: '用户' },
|
// meta: { title: '用户' },
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
path: 'userChat',
|
// path: 'userChat',
|
||||||
name: 'UserChat',
|
// name: 'UserChat',
|
||||||
component: () => import('@/views/maomao/user/chat/index'),
|
// component: () => import('@/views/maomao/user/chat/index'),
|
||||||
meta: { title: '聊天' },
|
// meta: { title: '聊天' },
|
||||||
},
|
// },
|
||||||
],
|
// ],
|
||||||
},
|
// },
|
||||||
],
|
// ],
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
path: '/cxshMini',
|
// path: '/cxshMini',
|
||||||
component: Layout,
|
// component: Layout,
|
||||||
redirect: 'noRedirect',
|
// redirect: 'noRedirect',
|
||||||
name: 'CxshMini',
|
// name: 'CxshMini',
|
||||||
meta: { title: '小程序', icon: 'comment', permissions: ['admin', 'csxh_admin', 'csxh_user'] },
|
// meta: { title: '小程序', icon: 'comment', permissions: ['admin', 'csxh_admin', 'csxh_user'] },
|
||||||
children: [
|
// children: [
|
||||||
{
|
// {
|
||||||
path: 'home',
|
// path: 'home',
|
||||||
component: EmptyLayout,
|
// component: EmptyLayout,
|
||||||
alwaysShow: true,
|
// alwaysShow: true,
|
||||||
redirect: 'noRedirect',
|
// redirect: 'noRedirect',
|
||||||
name: 'Home',
|
// name: 'Home',
|
||||||
meta: {
|
// meta: {
|
||||||
title: '首页',
|
// title: '首页',
|
||||||
icon: 'home',
|
// icon: 'home',
|
||||||
permissions: ['admin', 'csxh_admin', 'csxh_user'],
|
// permissions: ['admin', 'csxh_admin', 'csxh_user'],
|
||||||
},
|
// },
|
||||||
children: [
|
// children: [
|
||||||
{
|
// {
|
||||||
path: 'banner',
|
// path: 'banner',
|
||||||
name: 'Banner',
|
// name: 'Banner',
|
||||||
component: () => import('@/views/cxshMini/home/banner/index'),
|
// component: () => import('@/views/cxshMini/home/banner/index'),
|
||||||
meta: { title: '轮播图' },
|
// meta: { title: '轮播图' },
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
path: 'news',
|
// path: 'news',
|
||||||
name: 'News',
|
// name: 'News',
|
||||||
component: () => import('@/views/cxshMini/home/news/index'),
|
// component: () => import('@/views/cxshMini/home/news/index'),
|
||||||
meta: { title: '花絮动态' },
|
// meta: { title: '花絮动态' },
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
path: 'createNews',
|
// path: 'createNews',
|
||||||
name: 'CreateNews',
|
// name: 'CreateNews',
|
||||||
component: () => import('@/views/cxshMini/home/createNews/index'),
|
// component: () => import('@/views/cxshMini/home/createNews/index'),
|
||||||
meta: { title: '新建花絮' },
|
// meta: { title: '新建花絮' },
|
||||||
},
|
// },
|
||||||
],
|
// ],
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
path: 'anli',
|
// path: 'anli',
|
||||||
component: EmptyLayout,
|
// component: EmptyLayout,
|
||||||
alwaysShow: true,
|
// alwaysShow: true,
|
||||||
redirect: 'noRedirect',
|
// redirect: 'noRedirect',
|
||||||
name: 'Anli',
|
// name: 'Anli',
|
||||||
meta: {
|
// meta: {
|
||||||
title: '精彩案例',
|
// title: '精彩案例',
|
||||||
icon: 'handshake',
|
// icon: 'handshake',
|
||||||
permissions: ['admin', 'csxh_admin', 'csxh_user'],
|
// permissions: ['admin', 'csxh_admin', 'csxh_user'],
|
||||||
},
|
// },
|
||||||
children: [
|
// children: [
|
||||||
{
|
// {
|
||||||
path: 'article',
|
// path: 'article',
|
||||||
name: 'Article',
|
// name: 'Article',
|
||||||
component: () => import('@/views/cxshMini/anli/article/index'),
|
// component: () => import('@/views/cxshMini/anli/article/index'),
|
||||||
meta: { title: '新建案例' },
|
// meta: { title: '新建案例' },
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
path: 'list',
|
// path: 'list',
|
||||||
name: 'List',
|
// name: 'List',
|
||||||
component: () => import('@/views/cxshMini/anli/list/index'),
|
// component: () => import('@/views/cxshMini/anli/list/index'),
|
||||||
meta: { title: '案例列表' },
|
// meta: { title: '案例列表' },
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
path: 'category',
|
// path: 'category',
|
||||||
name: 'Category',
|
// name: 'Category',
|
||||||
component: () => import('@/views/cxshMini/anli/category/index'),
|
// component: () => import('@/views/cxshMini/anli/category/index'),
|
||||||
meta: { title: '案例分类' },
|
// meta: { title: '案例分类' },
|
||||||
},
|
// },
|
||||||
],
|
// ],
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
path: 'lianxi',
|
// path: 'lianxi',
|
||||||
component: EmptyLayout,
|
// component: EmptyLayout,
|
||||||
alwaysShow: true,
|
// alwaysShow: true,
|
||||||
redirect: 'noRedirect',
|
// redirect: 'noRedirect',
|
||||||
name: 'Lianxi',
|
// name: 'Lianxi',
|
||||||
meta: {
|
// meta: {
|
||||||
title: '联系我们',
|
// title: '联系我们',
|
||||||
icon: 'user-friends',
|
// icon: 'user-friends',
|
||||||
permissions: ['admin', 'csxh_admin', 'csxh_user'],
|
// permissions: ['admin', 'csxh_admin', 'csxh_user'],
|
||||||
},
|
// },
|
||||||
children: [
|
// children: [
|
||||||
{
|
// {
|
||||||
path: 'member',
|
// path: 'member',
|
||||||
name: 'Member',
|
// name: 'Member',
|
||||||
component: () => import('@/views/cxshMini/lianxi/member/index'),
|
// component: () => import('@/views/cxshMini/lianxi/member/index'),
|
||||||
meta: { title: '成员' },
|
// meta: { title: '成员' },
|
||||||
},
|
// },
|
||||||
],
|
// ],
|
||||||
},
|
// },
|
||||||
],
|
// ],
|
||||||
},
|
// },
|
||||||
/* {
|
/* {
|
||||||
path: "/test",
|
path: "/test",
|
||||||
component: Layout,
|
component: Layout,
|
||||||
|
|||||||
@@ -40,6 +40,8 @@
|
|||||||
<el-select v-model="form.tag" placeholder="请选择标签" style="width: 100%">
|
<el-select v-model="form.tag" placeholder="请选择标签" style="width: 100%">
|
||||||
<el-option label="最新" value="new" />
|
<el-option label="最新" value="new" />
|
||||||
<el-option label="热门" value="hot" />
|
<el-option label="热门" value="hot" />
|
||||||
|
<el-option label="精选" value="featured" />
|
||||||
|
<el-option label="爆款" value="hot2" />
|
||||||
<el-option label="无" value="" />
|
<el-option label="无" value="" />
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|||||||
@@ -43,6 +43,8 @@
|
|||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
<el-tag v-if="row.tag === 'new'" type="success">最新</el-tag>
|
<el-tag v-if="row.tag === 'new'" type="success">最新</el-tag>
|
||||||
<el-tag v-else-if="row.tag === 'hot'" type="danger">热门</el-tag>
|
<el-tag v-else-if="row.tag === 'hot'" type="danger">热门</el-tag>
|
||||||
|
<el-tag v-else-if="row.tag === 'featured'" type="info">精选</el-tag>
|
||||||
|
<el-tag v-else-if="row.tag === 'hot2'" type="warning">爆款</el-tag>
|
||||||
<span v-else>{{ row.tag || '--' }}</span>
|
<span v-else>{{ row.tag || '--' }}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|||||||
Reference in New Issue
Block a user