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") }} {{ $t("device standby mode") }}
</div> </div>
<q-page-container v-show="$store.state.power_state" class="col"> <q-page-container class="col">
<div class="row"> <div class="row">
<!-- left --> <!-- left -->
<div <div

View File

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

View File

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

View File

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