Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
op-web-service
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
bp
op-web-service
Commits
719effef
Commit
719effef
authored
Aug 30, 2021
by
gengshaojing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: amap
parent
04814002
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
7 deletions
+2
-7
app.js
app.js
+0
-7
index.html
public/index.html
+2
-0
No files found.
app.js
View file @
719effef
...
...
@@ -11,13 +11,6 @@ const env = process.env.NODE_ENV;
const
app
=
new
Koa
();
app
.
use
(
async
(
ctx
,
next
)
=>
{
ctx
.
set
(
'Access-Control-Allow-Origin'
,
'*'
);
ctx
.
set
(
'Access-Control-Allow-Headers'
,
'Content-Type'
);
ctx
.
set
(
'Access-Control-Allow-Methods'
,
'POST'
);
await
next
();
});
app
.
use
(
koaBody
({
multipart
:
true
}));
app
.
use
(
bodyParser
());
...
...
public/index.html
View file @
719effef
...
...
@@ -16,6 +16,8 @@
<
%
for
(
let
i
in
htmlWebpackPlugin
.
options
.
cdn
&&
htmlWebpackPlugin
.
options
.
cdn
.
js
)
{
%
>
<script
src=
"<%= htmlWebpackPlugin.options.cdn.js[i] %>"
></script>
<
%
}
%
>
<script
src=
"http://webapi.amap.com/maps?v=1.3&key=bb057625545d8cf77df1379e7aaae0b5"
></script>
<script
src=
"http://webapi.amap.com/ui/1.0/main.js"
></script>
<title><
%=
htmlWebpackPlugin
.
options
.
title
%
></title>
</head>
...
...
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