新增对wordhelper登录的支持
This commit is contained in:
parent
1faae059c9
commit
0ea8e2f9c0
File diff suppressed because one or more lines are too long
2
dist/index.html
vendored
2
dist/index.html
vendored
@ -1 +1 @@
|
||||
<!doctype html><html lang="zh-CN"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="/favicon.ico"><title>NEU小站</title><script defer="defer" src="/js/chunk-vendors.0c5a84e6.js"></script><script defer="defer" src="/js/app.5df77a6c.js"></script><link href="/css/chunk-vendors.c52e575a.css" rel="stylesheet"><link href="/css/app.9def5edf.css" rel="stylesheet"></head><body><noscript><strong>抱歉,NEU小站无法在没有 JavaScript 的情况下正常工作。请启用 JavaScript 以继续。</strong></noscript><div id="app"></div></body></html>
|
||||
<!doctype html><html lang="zh-CN"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="/favicon.ico"><title>NEU小站</title><script defer="defer" src="/js/chunk-vendors.0c5a84e6.js"></script><script defer="defer" src="/js/app.5d973a4f.js"></script><link href="/css/chunk-vendors.c52e575a.css" rel="stylesheet"><link href="/css/app.9def5edf.css" rel="stylesheet"></head><body><noscript><strong>抱歉,NEU小站无法在没有 JavaScript 的情况下正常工作。请启用 JavaScript 以继续。</strong></noscript><div id="app"></div></body></html>
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -98,6 +98,12 @@ export default {
|
||||
const data = await response.json();
|
||||
if (data && data.isLoggedIn) {
|
||||
this.isAuthenticated = true;
|
||||
|
||||
const urlParams = new URLSearchParams(window.location.search);
|
||||
if (urlParams.get('lg_callback') === 'wordhelper') {
|
||||
window.location.href = `https://wh.ember.ac.cn/login-required?cb_token=${token}`;
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
// 理论上如果 response.ok 为 true,这里不应该执行
|
||||
// 但以防万一,处理逻辑上验证失败的情况
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user