|
@@ -24,15 +24,11 @@ export default {
|
|
|
loading: false,
|
|
|
};
|
|
|
},
|
|
|
-
|
|
|
created() {
|
|
|
- let code = this.$route.query.code
|
|
|
- if (!code) {
|
|
|
- code = window.location.search.replace("?code=" , '')
|
|
|
- }
|
|
|
- this.code = code
|
|
|
- console.log(this.code)
|
|
|
- this.getAzureAccessToken()
|
|
|
+ this.code = window.location.search.replace("?code=" , '');
|
|
|
+ this.code = this.code.substring(0, this.code.indexOf("&"));
|
|
|
+ console.log(this.code);
|
|
|
+ this.getAzureAccessToken();
|
|
|
},
|
|
|
methods: {
|
|
|
getAzureAccessToken(){
|
|
@@ -40,7 +36,6 @@ export default {
|
|
|
this.msgSuccess(this.$t('成功'));
|
|
|
});
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
};
|
|
|
</script>
|