|
@@ -130,7 +130,7 @@
|
|
|
</Form>
|
|
|
</div>
|
|
|
<div class="submit-btn-wrap">
|
|
|
- <Button type="primary" style="width:150px;margin-right:10px" @click="submit">{{$t('user.confirm')}}</Button>
|
|
|
+ <Button type="primary" style="width:150px;margin-right:10px" @click="submit" :loading="loading">{{$t('user.confirm')}}</Button>
|
|
|
<Button style="width:150px" @click="editAttr = 'none'">{{$t('user.cancel')}}</Button>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -149,6 +149,7 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
return {
|
|
|
+ loading: false,
|
|
|
updHeader: {},
|
|
|
timer: undefined,
|
|
|
countdown: 60, //倒计时
|
|
@@ -307,6 +308,7 @@ export default {
|
|
|
},
|
|
|
//保存信息
|
|
|
submit() {
|
|
|
+ this.loading = true
|
|
|
let srvAdr = this.$store.state.config.srvAdr
|
|
|
let host = srvAdr == 'Global' ? this.$store.state.config.Global.coreAPIUrl : this.$store.state.config.China.coreAPIUrl
|
|
|
let clientId = srvAdr == 'Global' ? this.$store.state.config.Global.clientID : this.$store.state.config.China.clientID
|
|
@@ -367,6 +369,8 @@ export default {
|
|
|
}
|
|
|
if (params.grant_type) {
|
|
|
this.updateUserInfo(host, params)
|
|
|
+ } else {
|
|
|
+ this.loading = false
|
|
|
}
|
|
|
},
|
|
|
updateUserInfo(host, params) {
|
|
@@ -425,7 +429,9 @@ export default {
|
|
|
err => {
|
|
|
console.log(err)
|
|
|
}
|
|
|
- )
|
|
|
+ ).finally(() => {
|
|
|
+ this.loading = false
|
|
|
+ })
|
|
|
},
|
|
|
editInfo(attr) {
|
|
|
this.editAttr = attr
|