This commit is contained in:
wangjinlei
2021-06-24 18:05:23 +08:00
parent 97647f152b
commit 55ba44f868

View File

@@ -1,17 +1,17 @@
<template> <template>
<div class="login-wrap" v-loading="loading"> <div class="login-wrap" v-loading="loading"></div>
</div>
</template> </template>
<script> <script>
export default { export default {
data: function () { data: function () {
return { return {
account: localStorage.getItem('ms_username'), query: {
code: this.$route.query.code, account: localStorage.getItem('ms_username'),
code: this.$route.query.code
},
loading: true, loading: true,
loginForm: {}, loginForm: {}
}; };
}, },
created: function () { created: function () {
@@ -20,7 +20,7 @@ export default {
methods: { methods: {
initLinkOrcid() { initLinkOrcid() {
this.$api this.$api
.post('api/User/OrcidBinding', { code: this.code }) .post('api/User/OrcidBinding', this.query)
.then((res) => { .then((res) => {
this.$message.success('Bind success'); this.$message.success('Bind success');
this.$router.push('/'); this.$router.push('/');