1
This commit is contained in:
@@ -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('/');
|
||||||
|
|||||||
Reference in New Issue
Block a user