|
@@ -49,17 +49,12 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
mounted() {
|
|
|
- if (localStorage.getItem("chinaMap")) this.init();
|
|
|
- else this.getMap();
|
|
|
+ this.init();
|
|
|
+ if (!localStorage.getItem("chinaMap")) this.getMap();
|
|
|
},
|
|
|
computed: {},
|
|
|
methods: {
|
|
|
init() {
|
|
|
- if (localStorage.guijiToken) {
|
|
|
- return guijiActivity().then(topic => {
|
|
|
- this.getTab(topic);
|
|
|
- });
|
|
|
- }
|
|
|
let from = new FormData();
|
|
|
from.append("username", "lyl");
|
|
|
from.append("sign", 'd9fc62ef304cec188e51bfd2df556a344a38d5a04cb7d4050c5d2ed12fa8631e');
|