Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
digital-construction
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
张牧越
digital-construction
Commits
c7303944
Commit
c7303944
authored
Jun 02, 2023
by
张牧越
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix
parent
1a10b267
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
9 deletions
+2
-9
.env.development
.env.development
+1
-1
Index.vue
src/components/Index.vue
+1
-8
No files found.
.env.development
View file @
c7303944
NODE_ENV = "development"
NODE_ENV = "development"
Mock: true
Mock: true
VUE_APP_API_URL = "
http://cmhv8b.natappfree.cc
"
VUE_APP_API_URL = "
http://192.168.0.153:8002
"
src/components/Index.vue
View file @
c7303944
...
@@ -160,14 +160,7 @@ export default {
...
@@ -160,14 +160,7 @@ export default {
},
},
bodyScale
()
{
bodyScale
()
{
var
deviceHeight
=
window
.
screen
.
height
;
var
deviceHeight
=
window
.
screen
.
height
;
var
pixelHeights
=
document
.
body
.
clientHeight
;
var
scale
=
deviceHeight
/
1220
;
var
minus
=
pixelHeights
-
deviceHeight
;
console
.
log
(
minus
);
var
scale
=
deviceHeight
/
1220
;
// height:550=2100 height:720=1680 height:940=1220 height:2160=1080
// var canvasScale = deviceWidth / 1920;
// 1.777778 16:9 1080
//1.6 16:10 1100
// 1.547 1728:890 1350
document
.
body
.
style
.
zoom
=
scale
;
document
.
body
.
style
.
zoom
=
scale
;
document
.
styleSheets
[
document
.
styleSheets
.
length
-
1
].
insertRule
(
document
.
styleSheets
[
document
.
styleSheets
.
length
-
1
].
insertRule
(
"canvas:not(.amap-layer):not(.amap-labels) {zoom: "
+
"canvas:not(.amap-layer):not(.amap-labels) {zoom: "
+
...
...
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