Commit 2edfc4fd authored by jiyonggang's avatar jiyonggang

加一个重定向的判断

parent 2fbeafe4
...@@ -68,15 +68,11 @@ export default { ...@@ -68,15 +68,11 @@ export default {
const urlParams = new URLSearchParams(window.location.search); const urlParams = new URLSearchParams(window.location.search);
const success = urlParams.get('success'); const success = urlParams.get('success');
const error = urlParams.get('error'); const error = urlParams.get('error');
if (success === 'true') { if (success === 'true') {
this.showSuccessMessage = true; this.$message.success('授权成功!');
setTimeout(() => { this.getTokenList();
this.showSuccessMessage = false;
}, 3000);
} else if (success === 'false') { } else if (success === 'false') {
this.showErrorMessage = true; this.$message.error(`授权失败: ${error || '未知错误'}`);
this.errorMessage = error || '未知错误';
} }
}, },
methods: { 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