更新
This commit is contained in:
@@ -60,7 +60,7 @@ export default {
|
||||
};
|
||||
},
|
||||
created() {
|
||||
this.getSiteList();
|
||||
this.refreshLocation();
|
||||
},
|
||||
methods: {
|
||||
toSitePage() {
|
||||
@@ -72,13 +72,14 @@ export default {
|
||||
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