zouyu
10 小时以前 f431d3c97d0fbfa2eaa530eabc7c1eb66323267c
src/views/tideLogin.vue
@@ -2,7 +2,7 @@
  <div></div>
</template>
<script>
import store from "@/store";
import useUserStore from '@/store/modules/user'
export default {
  data() {
    return {}
@@ -12,8 +12,8 @@
  },
  computed: {},
  methods: {
     goLogin() {
      store.dispatch('TideLogin', {code : this.$route.query.code}).then(() => {
    goLogin() {
      useUserStore().TideLogin( {code : this.$route.query.code}).then(() => {
        this.$router.push({ path: this.redirect || "/" }).catch(() => { });
      })
    }