cos upload

This commit is contained in:
zzc
2025-04-30 23:34:59 +08:00
parent 939c43f281
commit 496a0cce52
32 changed files with 475 additions and 517 deletions

View File

@@ -1,8 +1,3 @@
/**
* @author https://github.com/zxwk1998/vue-admin-better 不想保留author可删除
* @description router全局配置如有必要可分文件抽离其中asyncRoutes只有在intelligence模式下才会用到vip文档中已提供路由的基础图标与小清新图标的配置方案请仔细阅读
*/
import Vue from 'vue'
import VueRouter from 'vue-router'
import Layout from '@/layouts'
@@ -58,7 +53,7 @@ export const asyncRoutes = [
component: Layout,
redirect: 'noRedirect',
name: 'CxshMini',
meta: { title: '小程序', icon: 'comment', permissions: ['admin'] },
meta: { title: '小程序', icon: 'comment', permissions: ['admin', 'csxh_admin', 'csxh_user'] },
children: [
{
path: 'home',
@@ -69,7 +64,7 @@ export const asyncRoutes = [
meta: {
title: '首页',
icon: 'home',
permissions: ['admin'],
permissions: ['admin', 'csxh_admin', 'csxh_user'],
},
children: [
{
@@ -89,14 +84,20 @@ export const asyncRoutes = [
meta: {
title: '精彩案例',
icon: 'handshake',
permissions: ['admin'],
permissions: ['admin', 'csxh_admin', 'csxh_user'],
},
children: [
{
path: 'article',
name: 'Article',
component: () => import('@/views/cxshMini/anli/article/index'),
meta: { title: '案例' },
meta: { title: '新建案例' },
},
{
path: 'list',
name: 'List',
component: () => import('@/views/cxshMini/anli/list/index'),
meta: { title: '案例列表' },
},
{
path: 'category',
@@ -115,7 +116,7 @@ export const asyncRoutes = [
meta: {
title: '联系我们',
icon: 'user-friends',
permissions: ['admin'],
permissions: ['admin', 'csxh_admin', 'csxh_user'],
},
children: [
{
@@ -152,7 +153,7 @@ export const asyncRoutes = [
redirect: 'noRedirect',
name: 'Vab',
alwaysShow: true,
meta: { title: '组件', icon: 'box-open' },
meta: { title: '组件', icon: 'box-open', permissions: ['admin'] },
children: [
{
path: 'permissions',
@@ -323,51 +324,52 @@ export const asyncRoutes = [
component: () => import('@/views/personnelManagement/roleManagement/index'),
meta: { title: '角色管理' },
},
{
path: 'menuManagement',
name: 'MenuManagement',
component: () => import('@/views/personnelManagement/menuManagement/index'),
meta: { title: '菜单管理', badge: 'New' },
},
// {
// path: 'menuManagement',
// name: 'MenuManagement',
// component: () => import('@/views/personnelManagement/menuManagement/index'),
// meta: { title: '菜单管理', badge: 'New' },
// },
],
},
{
path: '/mall',
component: Layout,
redirect: 'noRedirect',
name: 'Mall',
meta: {
title: '商城',
icon: 'shopping-cart',
permissions: ['admin'],
},
// {
// path: '/mall',
// component: Layout,
// redirect: 'noRedirect',
// name: 'Mall',
// meta: {
// title: '商城',
// icon: 'shopping-cart',
// permissions: ['admin'],
// },
children: [
{
path: 'pay',
name: 'Pay',
component: () => import('@/views/mall/pay/index'),
meta: {
title: '支付',
noKeepAlive: true,
},
children: null,
},
{
path: 'goodsList',
name: 'GoodsList',
component: () => import('@/views/mall/goodsList/index'),
meta: {
title: '商品列表',
},
},
],
},
// children: [
// {
// path: 'pay',
// name: 'Pay',
// component: () => import('@/views/mall/pay/index'),
// meta: {
// title: '支付',
// noKeepAlive: true,
// },
// children: null,
// },
// {
// path: 'goodsList',
// name: 'GoodsList',
// component: () => import('@/views/mall/goodsList/index'),
// meta: {
// title: '商品列表',
// },
// },
// ],
// },
{
path: '/error',
component: EmptyLayout,
redirect: 'noRedirect',
name: 'Error',
hidden: true,
meta: { title: '错误页', icon: 'bug' },
children: [
{