Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xoadoPlatform
Project
Overview
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
yaohui
xoadoPlatform
Commits
654b6802
Commit
654b6802
authored
Nov 18, 2021
by
吕海涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
11
parent
58abde48
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
22 deletions
+23
-22
main.js
src/main.js
+23
-22
No files found.
src/main.js
View file @
654b6802
...
...
@@ -9,28 +9,28 @@ import animated from 'animate.css'
import
VueRouter
from
'vue-router'
import
md5
from
'js-md5'
;
import
VueAMap
from
"vue-amap"
;
import
{
VueJsonp
}
from
'vue-jsonp'
import
{
VueJsonp
}
from
'vue-jsonp'
import
echarts
from
'echarts'
import
common
from
'@/assets/js/common.js'
import
*
as
custom
from
'@/views/components/common/times.js'
import
"@/assets/iconfont/iconfont.css"
import
VueClipboard
from
'vue-clipboard2'
VueAMap
.
initAMapApiLoader
({
key
:
'03b6a28b75d499b51929b9bcb582945f'
,
plugin
:
[
'AMap.Autocomplete'
,
// 输入提示插件
'AMap.PlaceSearch'
,
// POI搜索插件
'AMap.Scale'
,
// 右下角缩略图插件 比例尺
'AMap.OverView'
,
// 地图鹰眼插件
'AMap.ToolBar'
,
// 地图工具条
'AMap.MapType'
,
// 类别切换控件,实现默认图层与卫星图、实施交通图层之间切换的控制
'AMap.PolyEditor'
,
// 编辑 折线多,边形
'AMap.CircleEditor'
,
// 圆形编辑器插件
'AMap.Geolocation'
// 定位控件,用来获取和展示用户主机所在的经纬度位置
],
v
:
'1.4.13'
key
:
'03b6a28b75d499b51929b9bcb582945f'
,
plugin
:
[
'AMap.Autocomplete'
,
// 输入提示插件
'AMap.PlaceSearch'
,
// POI搜索插件
'AMap.Scale'
,
// 右下角缩略图插件 比例尺
'AMap.OverView'
,
// 地图鹰眼插件
'AMap.ToolBar'
,
// 地图工具条
'AMap.MapType'
,
// 类别切换控件,实现默认图层与卫星图、实施交通图层之间切换的控制
'AMap.PolyEditor'
,
// 编辑 折线多,边形
'AMap.CircleEditor'
,
// 圆形编辑器插件
'AMap.Geolocation'
// 定位控件,用来获取和展示用户主机所在的经纬度位置
],
v
:
'1.4.13'
})
Vue
.
prototype
.
common
=
common
;
Vue
.
prototype
.
common
=
common
;
Vue
.
use
(
VueAMap
);
Vue
.
use
(
animated
)
Vue
.
use
(
VueJsonp
)
...
...
@@ -38,17 +38,17 @@ Vue.use(ElementUI)
Vue
.
use
(
VueClipboard
)
Vue
.
config
.
productionTip
=
false
Vue
.
prototype
.
$md5
=
md5
// 对Router原型链上的push、replace方法进行重写,这样就不用每次调用方法都要加上catch 防止控制台出现Uncaught (in promise) undefined报错
// 对Router原型链上的push、replace方法进行重写,这样就不用每次调用方法都要加上catch 防止控制台出现Uncaught (in promise) undefined报错
const
routerPush
=
VueRouter
.
prototype
.
push
VueRouter
.
prototype
.
push
=
function
push
(
location
)
{
return
routerPush
.
call
(
this
,
location
).
catch
(
error
=>
error
)
return
routerPush
.
call
(
this
,
location
).
catch
(
error
=>
error
)
}
Object
.
keys
(
custom
).
forEach
(
key
=>
{
Vue
.
filter
(
key
,
custom
[
key
])
Vue
.
filter
(
key
,
custom
[
key
])
})
new
Vue
({
router
,
store
,
render
:
h
=>
h
(
App
)
}).
$mount
(
'#app'
)
router
,
store
,
render
:
h
=>
h
(
App
)
}).
$mount
(
'#app'
)
\ No newline at end of file
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