Commit f50bae0c authored by xhx's avatar xhx

fix:调整

parent 41e1d16c
<template>
<div class="w-full min-h-screen flex items-center justify-center text-white">
<span v-if="state === 0">当前地址为票池地址,无操作页面</span>
<!-- <span v-if="state === 0">当前地址为票池地址,无操作页面</span> -->
<span v-if="state === 0" class="px-3 py-1" @click="$router.push('/nodePage')">
导入
</span>
<span v-else-if="state === 1">当前地址为{{ msg }}地址,详情请前往后台管理系统查看</span>
<span v-else>当前地址非新用户,无操作页面</span>
</div>
......
<template>
<div class="w-full min-h-screen text-white">
details
<wallet-status
:walletStatus="walletStatus"
@showLockStatusDialog="lockStatusDialogShow = true"
......
// const TerserPlugin = require('terser-webpack-plugin')
// const CompressionWebpackPlugin = require('compression-webpack-plugin')
const TerserPlugin = require('terser-webpack-plugin')
const CompressionWebpackPlugin = require('compression-webpack-plugin')
module.exports = {
// ...other vue-cli plugin options...
......@@ -31,34 +31,34 @@ module.exports = {
},
}
},
// configureWebpack: config => {
// if (process.env.NODE_ENV === 'production') {
// config.optimization = {
// minimize: true,
// minimizer: [
// new TerserPlugin({
// exclude: /node_modules/,
// terserOptions: {
// compress: {
// drop_console: true,
// drop_debugger: false,
// pure_funcs: ['console.log'], // 移除console
// }
// }
// })
// ]
// },
// config.plugins = [
// new CompressionWebpackPlugin({
// filename: '[path][name].gz[query]',
// algorithm: 'gzip',
// test: /\.(js|css|json|ttf)(\?.*)?$/i,
// threshold: 0,
// minRatio: 0.8,
// })
// ]
// }
// }
configureWebpack: config => {
if (process.env.NODE_ENV === 'production') {
config.optimization = {
minimize: true,
minimizer: [
new TerserPlugin({
exclude: /node_modules/,
terserOptions: {
compress: {
drop_console: true,
drop_debugger: false,
pure_funcs: ['console.log'], // 移除console
}
}
})
]
}
// config.plugins = [
// new CompressionWebpackPlugin({
// filename: '[path][name].gz[query]',
// algorithm: 'gzip',
// test: /\.(js|css|json|ttf)(\?.*)?$/i,
// threshold: 0,
// minRatio: 0.8,
// })
// ]
}
}
// pwa: {
// name: 'My App',
// themeColor: '#4DBA87',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment