1
0
mirror of https://github.com/hanxi/xiaomusic.git synced 2025-12-18 16:53:33 +08:00

fix: 控制台显示版本号 #59

This commit is contained in:
涵曦
2024-05-16 23:19:05 +00:00
parent abbc2f25bb
commit c2740533a8
5 changed files with 22 additions and 1 deletions

View File

@@ -20,6 +20,13 @@ $(function(){
$("#volume").val(data.volume);
});
// 拉取版本
$.get("/getversion", function(data, status) {
console.log(data, status, data["version"]);
$("#version").text(`(${data.version})`);
});
function append_op_button_name(name) {
append_op_button(name, name);
}

View File

@@ -60,7 +60,7 @@
</style>
</head>
<body>
<h2>小爱音箱操控面板</h2>
<h2>小爱音箱操控面板<span id="version">(版本未知)</span></h2>
<hr>
<div id="cmds">
</div>