注销功能
This commit is contained in:
parent
c531965106
commit
4b10fea5b5
|
|
@ -140,6 +140,8 @@
|
|||
<button class="btn" style="background: #10B981;" onclick="callUploadLogs()">4. 上传系统日志</button>
|
||||
<button class="btn" style="background: #64748b;" onclick="callAbout()">5. 关于应用</button>
|
||||
<button class="btn btn-red" onclick="callExit()">6. 退出应用</button>
|
||||
<button class="btn" style="background: #e11d48;" onclick="callForceExit()">7. 强制退出</button>
|
||||
<button class="btn btn-orange" onclick="callLogout()">8. 注销登录</button>
|
||||
|
||||
<!-- WebSocket 控制区 -->
|
||||
<div class="ws-card">
|
||||
|
|
@ -519,6 +521,22 @@
|
|||
}
|
||||
}
|
||||
|
||||
function callForceExit() {
|
||||
if (window.android && window.android.forceExit) {
|
||||
window.android.forceExit();
|
||||
} else {
|
||||
alert("App 强制退出接口不可用");
|
||||
}
|
||||
}
|
||||
|
||||
function callLogout() {
|
||||
if (window.android && window.android.logout) {
|
||||
window.android.logout();
|
||||
} else {
|
||||
alert("App 注销接口不可用");
|
||||
}
|
||||
}
|
||||
|
||||
function callAbout() {
|
||||
if (window.android && window.android.getAboutInfo) {
|
||||
var infoStr = window.android.getAboutInfo();
|
||||
|
|
|
|||
Loading…
Reference in New Issue