Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
Community-Mining-Client
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mining
Community-Mining-Client
Commits
f50bae0c
Commit
f50bae0c
authored
Dec 13, 2021
by
xhx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:调整
parent
41e1d16c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
32 deletions
+34
-32
index.vue
src/views/NoPage/index.vue
+4
-1
index.vue
src/views/NodePage/Details/index.vue
+0
-1
vue.config.js
vue.config.js
+30
-30
No files found.
src/views/NoPage/index.vue
View file @
f50bae0c
<
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>
...
...
src/views/NodePage/Details/index.vue
View file @
f50bae0c
<
template
>
<div
class=
"w-full min-h-screen text-white"
>
details
<wallet-status
:walletStatus=
"walletStatus"
@
showLockStatusDialog=
"lockStatusDialogShow = true"
...
...
vue.config.js
View file @
f50bae0c
//
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',
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment