更新
This commit is contained in:
@@ -50,7 +50,7 @@
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.getSiteList()
|
||||
this.refreshLocation()
|
||||
},
|
||||
methods: {
|
||||
toSitePage(){
|
||||
@@ -62,13 +62,14 @@
|
||||
refreshLocation(){
|
||||
uni.getLocation({
|
||||
type: 'wgs84',
|
||||
success: function (res) {
|
||||
success: (res) => {
|
||||
uni.setStorageSync('location',res)
|
||||
this.getSiteList()
|
||||
}
|
||||
});
|
||||
},
|
||||
getSiteList() {
|
||||
this.refreshLocation()
|
||||
// this.refreshLocation()
|
||||
let data1 = {
|
||||
currentPage: 1,
|
||||
pageSize: 3,
|
||||
|
||||
Reference in New Issue
Block a user