修复通过右键打开轮询设置时不显示信号源名称的BUG

修复PAD下无法替换轮询窗口的BUG
This commit is contained in:
fangxiang 2022-07-27 19:39:47 +08:00
parent 228c814f3d
commit 7ff2e48b84
3 changed files with 9 additions and 12 deletions

View File

@ -1,6 +1,6 @@
{
"name": "media_player_client",
"version": "1.4.21",
"version": "1.4.22",
"description": "A Quasar Framework app",
"productName": "MediaPlayerClient",
"author": "fangxiang <fangxiang@cloudview.work>",

View File

@ -320,6 +320,8 @@ export default defineComponent({
},
showDialog(name: string, options: StringKeyValueEntity[] | null) {
show_dialog.value = true;
signals.value = GlobalData.getInstance().signal_source;
if (options) {
datas.value = [];
if (options.length % 2) {
@ -345,8 +347,8 @@ export default defineComponent({
_resolve = null;
}
_resolve = resolve;
show_dialog.value = true;
signals.value = GlobalData.getInstance().signal_source;
if (options) {
datas.value = [];

View File

@ -739,16 +739,11 @@ export default defineComponent({
switch (evt.type) {
case "polling":
{
if (signal_sources.length) {
const signal_source = signal_sources[0];
if (signal_source) {
client?.replaceWindow2(
window.window_id,
evt.data.uuid,
true
);
}
}
client?.replaceWindow2(
window.window_id,
evt.data.uuid,
true
);
}
break;