退出登录移到「设置与服务」末尾(退出授权登录, 仅已授权显示), 删用户卡右上角退出图标 (v26090728)
This commit is contained in:
@@ -4222,7 +4222,7 @@
|
||||
}
|
||||
/* 授权入口:未授权时显示(引导先授权);退出按钮:已授权时显示 */
|
||||
var _box = $('#meAuthBox'); if (_box) _box.style.display = _authorized ? 'none' : '';
|
||||
var _lx = $('#meLogoutBtn'); if (_lx) _lx.style.display = _authorized ? '' : 'none';
|
||||
var _lx = $('#meLogoutCard'); if (_lx) _lx.style.display = _authorized ? '' : 'none';
|
||||
if (!p.userName) { var _ai2 = $('#meAvatarImg'); if (_ai2) _ai2.removeAttribute('src'); }
|
||||
}
|
||||
if (pg && pg.code === 200 && pg.result) {
|
||||
@@ -4419,7 +4419,7 @@
|
||||
成功后重载页面 → applyRemoteProfile 重新拉到空显示字段 → 回到未登录态、授权入口重现。
|
||||
⚠️ stopPropagation:me-card 整卡是 data-modal="modalProfile",不阻止冒泡
|
||||
会顺带打开资料弹窗。 */
|
||||
var meLogout = $('#meLogoutBtn');
|
||||
var meLogout = $('#meLogoutCard');
|
||||
if (meLogout) meLogout.addEventListener('click', function (e) {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
|
||||
Reference in New Issue
Block a user