PDA旋转,不重置activity;采取配置化,是否强制竖屏、强制横屏

This commit is contained in:
2024-05-29 14:06:56 +08:00
parent 23df4da1ff
commit 4af4aac1e5
8 changed files with 164 additions and 13 deletions

View File

@ -104,7 +104,8 @@
var data=JSON.stringify({
"address":document.getElementById('address').value,
"port":document.getElementById('port').value,
"path":document.getElementById('path').value
"path":document.getElementById('path').value,
"screen_rotation":document.getElementById('screen_rotation').value
});
window.NetworkSettingEngine.saveSetting(data);
window.View.reload();
@ -130,6 +131,10 @@
<label>访问子路径</label>
<input id="path" name="path" placeholder="访问子路径">
</div>
<div class="net-list">
<label>屏幕旋转</label>
<input id="screen_rotation" value="3" name="screen_rotation" placeholder="1:强制竖屏2:强制横屏3:横竖都转">
</div>
</div>
<div class="operation">
<button style="background: #1989fa;" onclick="saveSetting()">保存</button>