pad添加RTSP图标

修复PC页面待机后开机窗口位置不对的BUG
This commit is contained in:
fangxiang 2022-05-28 16:22:45 +08:00
parent 806d655a81
commit 7deb0fc847
5 changed files with 34 additions and 37 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

View File

@ -18,7 +18,7 @@
>
{{ $t("device standby mode") }}
</div>
<q-page-container v-show="$store.state.power_state" class="col">
<q-page-container class="col">
<div class="row">
<!-- left -->
<div

View File

@ -437,10 +437,7 @@ export default defineComponent({
// TODO add self to setConnects
if (remember_password.value) {
if (
data.password != cache_password &&
Md5.hashStr("admin") != cache_password
) {
{
Cookies.set("remember_password", JSON.stringify(true), {
expires: 15,
});

View File

@ -368,20 +368,12 @@ export default defineComponent({
// TODO add self to setConnects
if (remember_password.value) {
if (
data.password != cache_password &&
Md5.hashStr("admin") != cache_password
) {
Cookies.set("remember_password", JSON.stringify(true), {
expires: 15,
});
Cookies.set(
"auto_login",
JSON.stringify(auto_login.value),
{
Cookies.set("auto_login", JSON.stringify(auto_login.value), {
expires: 15,
}
);
});
Cookies.set("name", data.ip_address, {
expires: 15,
});
@ -397,7 +389,6 @@ export default defineComponent({
expires: 15,
}
);
}
} else {
Cookies.remove("remember_password");
Cookies.remove("auto_login");

View File

@ -1,14 +1,19 @@
<template>
<div
ref="wall"
class="fit items-center justify-evenly wall"
class="fit items-center justify-evenly"
:class="$store.state.power_state ? 'wall' : ''"
@dragenter="onDragEnter"
@dragleave="onDragLeave"
@dragover="onDragOver"
@drop="onDrop"
style="background-color: #bce0f0"
>
<div id="windows" style="position: absolute">
<div
id="windows"
style="position: absolute"
v-if="$store.state.power_state"
>
<vue3-resize-drag
:w="item.width * ($refs.wall?.clientWidth ?? 0)"
:h="item.height * ($refs.wall?.clientHeight ?? 0)"
@ -62,7 +67,11 @@
</window>
</vue3-resize-drag>
</div>
<div ref="wall_grids" @click="onWallGridsClick">
<div
ref="wall_grids"
@click="onWallGridsClick"
v-if="$store.state.power_state"
>
<div
v-for="row of wall_rows"
:key="row"