完成兑奖页面逻辑

This commit is contained in:
Andy Leong
2024-01-17 17:13:45 +08:00
parent 27b1eab2ce
commit 3291088bca
48 changed files with 372 additions and 178 deletions

View File

@@ -38,9 +38,9 @@ export default defineConfig(({ command, mode }) => {
}
},
{
filename: 'share',
entry: '/src/page/Share/main.js',
template: 'share.html',
filename: 'cash',
entry: '/src/page/Cash/main.js',
template: 'cash.html',
injectOptions: {
data: {
title: '分享页',
@@ -61,7 +61,7 @@ export default defineConfig(({ command, mode }) => {
verbose: true, // 默认即可
disable: false, //开启压缩(不禁用),默认即可
deleteOriginFile: false, //删除源文件
threshold: 10240, //压缩前最小文件大小
threshold: 10240, //压缩前最小文件大小:10k
algorithm: 'gzip', //压缩算法
ext: '.gz', //文件类型
})
@@ -115,7 +115,7 @@ export default defineConfig(({ command, mode }) => {
},
},
// 公共基础路径构建生产环境时自动载入cdn路径
base: mode == 'production' ? env.VITE_CDN + env.VITE_FOLDER + '/' : './',
base: './',
// 打包配置
build: {
assetsPublicPath: './',
@@ -125,8 +125,8 @@ export default defineConfig(({ command, mode }) => {
terserOptions: {
compress: {
//生产环境时移除打印日志
drop_console: mode == 'production' ? true : false,
drop_debugger: mode == 'production' ? true : false,
// drop_console: mode == 'production' ? true : false,
// drop_debugger: mode == 'production' ? true : false,
},
},