mirror of
https://github.com/hanxi/xiaomusic.git
synced 2025-12-18 16:53:33 +08:00
fix: 控制台显示版本号 #59
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h2>小爱音箱操控面板</h2>
|
||||
<h2>小爱音箱操控面板<span id="version">(版本未知)</span></h2>
|
||||
<hr>
|
||||
<div id="cmds">
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user