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