qa-regulatory-gwj-vue/src/MapInit.js

14 lines
277 B
JavaScript
Raw Permalink Normal View History

2023-11-07 10:04:37 +08:00
// 初始化地图
export default {
init() {
return new Promise((resolve, reject) => {
// 如果已加载直接返回
if (window.T) {
console.log('地图脚本初始化成功...')
resolve(window.T)
reject('error')
}
})
}
}