mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-02-06 21:50:05 +00:00
🐛 修复 Windows WebTerminal
This commit is contained in:
@@ -163,6 +163,7 @@ function post(path, params, method = 'post') {
|
||||
const form = document.createElement('form');
|
||||
form.method = method;
|
||||
form.action = path;
|
||||
form.target = "_blank";
|
||||
|
||||
for (const key in params) {
|
||||
if (params.hasOwnProperty(key)) {
|
||||
@@ -176,6 +177,7 @@ function post(path, params, method = 'post') {
|
||||
|
||||
document.body.appendChild(form);
|
||||
form.submit();
|
||||
document.removeChild(form);
|
||||
}
|
||||
|
||||
function addOrEditServer(server, conf) {
|
||||
|
||||
2
resource/template/common/footer.html
vendored
2
resource/template/common/footer.html
vendored
@@ -9,7 +9,7 @@
|
||||
<script src="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.1/dist/semantic.min.js"></script>
|
||||
<script src="/static/semantic-ui-alerts.min.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/vue@2.6.12/dist/vue.min.js"></script>
|
||||
<script src="/static/main.js?v20210817"></script>
|
||||
<script src="/static/main.js?v20210818"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
||||
@@ -40,6 +40,10 @@
|
||||
term.loadAddon(fitAddon);
|
||||
term.open(document.getElementById('terminal-container'));
|
||||
|
||||
socket.onopen = () => {
|
||||
onResize()
|
||||
}
|
||||
|
||||
function onResize() {
|
||||
fitAddon.fit()
|
||||
const w = fitAddon.proposeDimensions();
|
||||
|
||||
Reference in New Issue
Block a user