Commit 2edfc4fd authored by jiyonggang's avatar jiyonggang

加一个重定向的判断

parent 2fbeafe4
......@@ -68,15 +68,11 @@ export default {
const urlParams = new URLSearchParams(window.location.search);
const success = urlParams.get('success');
const error = urlParams.get('error');
if (success === 'true') {
this.showSuccessMessage = true;
setTimeout(() => {
this.showSuccessMessage = false;
}, 3000);
this.$message.success('授权成功!');
this.getTokenList();
} else if (success === 'false') {
this.showErrorMessage = true;
this.errorMessage = error || '未知错误';
this.$message.error(`授权失败: ${error || '未知错误'}`);
}
},
methods: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment