Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZiBoYingJI
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kimber
ZiBoYingJI
Commits
5ea66232
Commit
5ea66232
authored
Sep 26, 2024
by
Kimber
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'update'
parent
f34edae9
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
289 additions
and
177 deletions
+289
-177
index.html
public/datav/index.html
+5
-0
watersource.html
public/datav/watersource.html
+275
-147
vue.config.js
vue.config.js
+9
-30
No files found.
public/datav/index.html
View file @
5ea66232
...
...
@@ -1264,7 +1264,12 @@
loading
.
close
();
this
.
isReady
=
true
;
this
.
mineList
=
res
&&
res
.
data
&&
res
.
data
.
results
;
console
.
log
(
'
mineList ________________
'
,
this
.
mineList
);
this
.
mineNumber1
=
this
.
mineList
.
filter
(
x
=>
x
.
mineType
==
1
).
length
;
this
.
mineNumber2
=
this
.
mineList
.
filter
(
x
=>
x
.
mineType
==
2
).
length
;
this
.
mineNumber3
=
this
.
mineList
.
filter
(
x
=>
x
.
mineType
==
3
).
length
;
...
...
public/datav/watersource.html
View file @
5ea66232
This diff is collapsed.
Click to expand it.
vue.config.js
View file @
5ea66232
...
...
@@ -22,24 +22,6 @@ module.exports = {
assetsDir
:
'
static
'
,
lintOnSave
:
process
.
env
.
NODE_ENV
===
'
development
'
,
productionSourceMap
:
false
,
pages
:{
index
:
{
// 页面的入口文件
entry
:
Mode
+
'
/main.js
'
,
// 页面的模板文件
//template: './public/edge.html',
//chunks:["edge"],
},
plus
:
{
// 页面的入口文件
entry
:
Mode
+
'
/plus.js
'
,
// 页面的模板文件
template
:
'
./public/plus.html
'
,
// build 生成的文件名称 例: dist/index.html
filename
:
'
plus.html
'
,
chunks
:[
"
plus
"
,
"
runtime
"
,
"
chunk-libs
"
,
"
chunk-elementUI
"
],
}
},
devServer
:
{
port
:
port
,
host
:
VUE_APP_BASE_API
&&
VUE_APP_BASE_API
.
split
(
/
\/\/
|:/
).
slice
(
-
2
)[
0
],
...
...
@@ -83,18 +65,15 @@ module.exports = {
}
},
plugins
:
[
new
CopyWebpackPlugin
([{
from
:
"
./static
"
,
to
:
'
static
'
}]),
],
name
:
name
,
resolve
:
{
alias
:
{
'
@
'
:
resolve
(
Mode
+
''
),
'
@crud
'
:
resolve
(
Mode
+
'
/components/Crud
'
)
}
}
// https://www.ydyno.com/archives/1260.html 使用gzip解压缩静态文件
/* new CompressionPlugin({
test: /\.(js|css|html)?$/i, // 压缩文件格式
filename: '[path].gz[query]', // 压缩后的文件名
algorithm: 'gzip', // 使用gzip压缩
minRatio: 0.8 // 压缩率小于1才会压缩
}) */
]
},
chainWebpack
(
config
)
{
config
.
plugins
.
delete
(
'
preload
'
)
// TODO: need test
...
...
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