1.0.11 • Published 3 years ago
location-js-bake v1.0.11
location-js
a js file to locate
Build Setup
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
# build for production and view the bundle analyzer report
npm run build --report
# run unit tests
npm run unit
# run all tests
npm test
#使用方法:
npm install location-js
import getLocation from 'location-js'
var options = {
vm: ths, // 当前vue对象
mapKey: ,腾讯地图的key
mapSK: ,腾讯地图的sk
baseUrl: 项目中配置的axios的baseurl,
isRecommended: false //是否定位完成后推荐门店
}
getLocation(options)
For a detailed explanation on how things work, check out the guide and docs for vue-loader.