后台查询Asin文档更新
This commit is contained in:
@@ -4162,10 +4162,10 @@
|
||||
alert(res.error || '退出失败');
|
||||
return;
|
||||
}
|
||||
window.location.href = res.redirect || '/login';
|
||||
window.location.replace(res.redirect || '/login?logout=1');
|
||||
})
|
||||
.catch(function () {
|
||||
window.location.href = '/logout';
|
||||
window.location.replace('/logout');
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
@@ -118,6 +118,10 @@
|
||||
</div>
|
||||
<script>
|
||||
(function() {
|
||||
var params = new URLSearchParams(window.location.search || '');
|
||||
if (params.get('logout') === '1' || params.get('switch') === '1') {
|
||||
return;
|
||||
}
|
||||
fetch('/api/auth/check', { credentials: 'same-origin' })
|
||||
.then(function(r) { return r.json(); })
|
||||
.then(function(res) {
|
||||
|
||||
Reference in New Issue
Block a user