update:打包配置
This commit is contained in:
parent
d8b7a4f1c1
commit
382dccf8fe
2
.env
2
.env
@ -5,7 +5,7 @@ VITE_PORT = 3030
|
||||
VITE_OPEN = true
|
||||
|
||||
# 打包是否开启 cdn(源文件 utils/build.ts),可自行修改
|
||||
VITE_OPEN_CDN = false
|
||||
VITE_OPEN_CDN = true
|
||||
|
||||
# public path 配置线上环境路径(打包)、本地通过 http-server 访问时,请置空即可
|
||||
#VITE_PUBLIC_PATH = /vue-next-admin-preview/
|
||||
@ -14,14 +14,14 @@
|
||||
|
||||
<script setup lang="ts" name="layoutSponsors">
|
||||
import { reactive, computed, onMounted } from 'vue';
|
||||
import sponsorsOne from '/@/assets/ccflowRightNextAdmin.png';
|
||||
// import sponsorsOne from '/@/assets/ccflowRightNextAdmin.png';
|
||||
|
||||
// 定义变量内容
|
||||
const state = reactive({
|
||||
sponsors: {
|
||||
list: [
|
||||
{
|
||||
url: sponsorsOne,
|
||||
url: '',
|
||||
text: `驰骋BPM系统包含表单引擎+流程引擎+权限控制,方便集成,配置灵活,功能强大,适合中国国情的工作流引擎.演示:http://demo.ccflow.org。右上角点star方可加群: 1060674395`,
|
||||
link: 'http://www.ccflow.org/',
|
||||
},
|
||||
|
||||
@ -55,113 +55,7 @@ export const dynamicRoutes: Array<RouteRecordRaw> = [
|
||||
meta: {
|
||||
isKeepAlive: true,
|
||||
},
|
||||
children: [
|
||||
{
|
||||
path: '/match/manage',
|
||||
name: 'manage',
|
||||
component: () => import('/@/views/match/manage/index.vue'),
|
||||
meta: {
|
||||
title: '比赛管理',
|
||||
isLink: '',
|
||||
isHide: false,
|
||||
isKeepAlive: true,
|
||||
isAffix: false,
|
||||
isIframe: false,
|
||||
roles: ['admin', 'common'],
|
||||
icon: 'iconfont icon-shouye',
|
||||
},
|
||||
},
|
||||
{
|
||||
path: '/match/project',
|
||||
name: 'project',
|
||||
component: () => import('/@/views/match/project/index.vue'),
|
||||
meta: {
|
||||
title: '项目管理',
|
||||
isLink: '',
|
||||
isHide: false,
|
||||
isKeepAlive: true,
|
||||
isAffix: false,
|
||||
isIframe: false,
|
||||
roles: ['admin', 'common'],
|
||||
icon: 'iconfont icon-shouye',
|
||||
},
|
||||
},
|
||||
{
|
||||
path: '/match/shop',
|
||||
name: 'shop',
|
||||
component: () => import('/@/views/match/shop/index.vue'),
|
||||
meta: {
|
||||
title: '商户管理',
|
||||
isLink: '',
|
||||
isHide: false,
|
||||
isKeepAlive: true,
|
||||
isAffix: false,
|
||||
isIframe: false,
|
||||
roles: ['admin', 'common'],
|
||||
icon: 'iconfont icon-shouye',
|
||||
},
|
||||
},
|
||||
{
|
||||
path: '/match/order',
|
||||
name: 'order',
|
||||
component: () => import('/@/views/match/order/index.vue'),
|
||||
meta: {
|
||||
title: '订单管理',
|
||||
isLink: '',
|
||||
isHide: false,
|
||||
isKeepAlive: true,
|
||||
isAffix: false,
|
||||
isIframe: false,
|
||||
roles: ['admin', 'common'],
|
||||
icon: 'iconfont icon-shouye',
|
||||
},
|
||||
},
|
||||
{
|
||||
path: '/match/user',
|
||||
name: 'user',
|
||||
component: () => import('/@/views/match/user/index.vue'),
|
||||
meta: {
|
||||
title: '用户管理',
|
||||
isLink: '',
|
||||
isHide: false,
|
||||
isKeepAlive: true,
|
||||
isAffix: false,
|
||||
isIframe: false,
|
||||
roles: ['admin', 'common'],
|
||||
icon: 'iconfont icon-shouye',
|
||||
},
|
||||
},
|
||||
{
|
||||
path: '/match/book',
|
||||
name: 'book',
|
||||
component: () => import('/@/views/match/book/index.vue'),
|
||||
meta: {
|
||||
title: '证书管理',
|
||||
isLink: '',
|
||||
isHide: false,
|
||||
isKeepAlive: true,
|
||||
isAffix: false,
|
||||
isIframe: false,
|
||||
roles: ['admin', 'common'],
|
||||
icon: 'iconfont icon-shouye',
|
||||
},
|
||||
},
|
||||
{
|
||||
path: '/match/coupon',
|
||||
name: 'coupon',
|
||||
component: () => import('/@/views/match/coupon/index.vue'),
|
||||
meta: {
|
||||
title: '优惠券管理',
|
||||
isLink: '',
|
||||
isHide: false,
|
||||
isKeepAlive: true,
|
||||
isAffix: false,
|
||||
isIframe: false,
|
||||
roles: ['admin', 'common'],
|
||||
icon: 'iconfont icon-shouye',
|
||||
},
|
||||
},
|
||||
],
|
||||
children: [],
|
||||
}
|
||||
],
|
||||
},
|
||||
@ -210,21 +104,6 @@ export const dynamicRoutes: Array<RouteRecordRaw> = [
|
||||
icon: 'iconfont icon-shouye',
|
||||
},
|
||||
},
|
||||
{
|
||||
path: '/clientUser',
|
||||
name: 'clientUser',
|
||||
component: () => import('/@/views/match/user/index.vue'),
|
||||
meta: {
|
||||
title: '用户管理',
|
||||
isLink: '',
|
||||
isHide: false,
|
||||
isKeepAlive: true,
|
||||
isAffix: false,
|
||||
isIframe: false,
|
||||
roles: ['admin', 'common'],
|
||||
icon: 'iconfont icon-shouye',
|
||||
},
|
||||
},
|
||||
{
|
||||
path: '/certificate',
|
||||
name: 'certificate',
|
||||
@ -343,7 +222,7 @@ export const dynamicRoutes: Array<RouteRecordRaw> = [
|
||||
{
|
||||
path: '/points',
|
||||
name: 'points',
|
||||
component: () => import('/@/views/match/points/index.vue'),
|
||||
component: () => import('/@/views/points/record/index.vue'),
|
||||
meta: {
|
||||
isKeepAlive: true,
|
||||
},
|
||||
@ -423,7 +302,7 @@ export const dynamicRoutes: Array<RouteRecordRaw> = [
|
||||
{
|
||||
path: '/user',
|
||||
name: 'user',
|
||||
component: () => import('/@/views/user/general/index.vue'),
|
||||
component: () => import('/@/views/match/user/general/index.vue'),
|
||||
meta: {
|
||||
isKeepAlive: true,
|
||||
},
|
||||
@ -463,7 +342,7 @@ export const dynamicRoutes: Array<RouteRecordRaw> = [
|
||||
{
|
||||
path: '/integral',
|
||||
name: "integral",
|
||||
component: () => import('/@/views/user/general/index.vue'),
|
||||
component: () => import('/@/views/match/points/config/index.vue'),
|
||||
meta: {
|
||||
isKeepAlive: true,
|
||||
},
|
||||
@ -541,7 +420,7 @@ export const dynamicRoutes: Array<RouteRecordRaw> = [
|
||||
{
|
||||
path: '/user/personnel',
|
||||
name: 'userpersonnel',
|
||||
component: () => import('/@/views/user/general/index.vue'),
|
||||
component: () => import('/@/views/team/trainer/index.vue'),
|
||||
meta: {
|
||||
isKeepAlive: true,
|
||||
},
|
||||
@ -597,7 +476,7 @@ export const dynamicRoutes: Array<RouteRecordRaw> = [
|
||||
{
|
||||
path: '/user/event',
|
||||
name: 'userevent',
|
||||
component: () => import('/@/views/user/general/index.vue'),
|
||||
component: () => import('/@/views/user/registration/index.vue'),
|
||||
meta: {
|
||||
isKeepAlive: true,
|
||||
},
|
||||
|
||||
@ -11,7 +11,7 @@ import importToCDN from 'vite-plugin-cdn-import';
|
||||
export const buildConfig = {
|
||||
cdn() {
|
||||
return importToCDN({
|
||||
prodUrl: 'https://unpkg.com/{name}@{version}/{path}',
|
||||
prodUrl: 'https://yuedong-wechatapplet.oss-cn-shanghai.aliyuncs.com/event_web/202603250222',
|
||||
modules: [
|
||||
// autoComplete('vue'),
|
||||
// autoComplete('axios'),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user