打卡bug
This commit is contained in:
@ -104,10 +104,8 @@ onMounted(() => {
|
||||
});
|
||||
const getLocation = () => {
|
||||
if ("geolocation" in navigator) {
|
||||
console.log(navigator.geolocation, "navigator.geolocation");
|
||||
navigator.geolocation.getCurrentPosition(
|
||||
(pos) => {
|
||||
console.log(pos.coords, "pos");
|
||||
if (pos.coords) {
|
||||
var latitude = pos.coords.latitude;
|
||||
var longitude = pos.coords.longitude;
|
||||
|
||||
Reference in New Issue
Block a user