Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yangpu-property
Project
Project
Details
Activity
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
郭铭瑶
yangpu-property
Commits
a806f94d
Commit
a806f94d
authored
Apr 01, 2021
by
郭铭瑶
🤘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改api&添加地图链接注释
parent
6f65a2a7
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
24 deletions
+27
-24
index.html
index.html
+24
-19
api.js
src/server/api.js
+3
-5
No files found.
index.html
View file @
a806f94d
<!DOCTYPE html>
<html
id=
"html"
>
<head>
<head>
<meta
charset=
"utf-8"
>
<meta
name=
"viewport"
content=
"width=device-width,initial-scale=1.0"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge, chrome=1"
>
...
...
@@ -10,13 +11,17 @@
font-size
:
16vh
;
}
</style>
</head>
<body>
</head>
<body>
<div
id=
"app"
></div>
<!-- built files will be auto injected -->
</body>
<script
src=
"./static/hls.js"
></script>
<script
src=
"./static/SMap.min.js"
></script>
<!-- <script src="./static/esm/SMap.min.js"></script> -->
<script
src=
"./static/Plugins.min.js"
></script>
</body>
<script
src=
"./static/hls.js"
></script>
<!-- 下面是开发用 -->
<script
src=
"./static/SMap.min.js"
></script>
<!-- 下面是生产用 -->
<!-- <script src="./static/esm/SMap.min.js"></script> -->
<script
src=
"./static/Plugins.min.js"
></script>
</html>
src/server/api.js
View file @
a806f94d
let
BASE_URL
=
''
let
DATA_URL
=
'
'
const
DATA_URL
=
'http://10.89.1.208:10005
'
switch
(
process
.
env
.
NODE_ENV
)
{
case
'production'
:
// BASE_URL = 'http://10.89.4.164:18080/api'
BASE_URL
=
'http://yangpu.hm.omniview.pro/api'
DATA_URL
=
'http://10.89.1.208:10005'
BASE_URL
=
'http://10.89.4.164:18080/api'
// BASE_URL = 'http://yangpu.hm.omniview.pro/api'
break
default
:
BASE_URL
=
'http://yangpu.hm.omniview.pro/api'
DATA_URL
=
'http://10.89.1.208:10005'
}
export
default
{
BASE_URL
,
...
...
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