|
@@ -20,6 +20,8 @@
|
|
|
import { mapState, createNamespacedHelpers } from 'vuex';
|
|
|
import NavBar from '@/layout/common/topInfo.vue';
|
|
|
import footInfo from '@/layout/common/footInfo.vue';
|
|
|
+const { mapActions: wxchattest } = createNamespacedHelpers('wxchattest');
|
|
|
+
|
|
|
export default {
|
|
|
name: 'index',
|
|
|
props: {},
|
|
@@ -40,8 +42,16 @@ export default {
|
|
|
},
|
|
|
};
|
|
|
},
|
|
|
- created() {},
|
|
|
- methods: {},
|
|
|
+ created() {
|
|
|
+ this.toLogin();
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ ...wxchattest(['login']),
|
|
|
+ async toLogin() {
|
|
|
+ let res = await this.login({ redirect_uri: 'http://localhost:8002/home/index', type: '0', openid: '00' });
|
|
|
+ console.log(res);
|
|
|
+ },
|
|
|
+ },
|
|
|
computed: {
|
|
|
// ...mapState(['user']),
|
|
|
},
|