parent
806d655a81
commit
7deb0fc847
Binary file not shown.
After Width: | Height: | Size: 4.7 KiB |
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
});
|
||||
|
|
|
@ -368,36 +368,27 @@ 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), {
|
||||
Cookies.set("remember_password", JSON.stringify(true), {
|
||||
expires: 15,
|
||||
});
|
||||
Cookies.set("auto_login", JSON.stringify(auto_login.value), {
|
||||
expires: 15,
|
||||
});
|
||||
Cookies.set("name", data.ip_address, {
|
||||
expires: 15,
|
||||
});
|
||||
Cookies.set("user_name", data.user_name ?? "admin", {
|
||||
expires: 15,
|
||||
});
|
||||
Cookies.set(
|
||||
"password",
|
||||
data.password == cache_password
|
||||
? data.password ?? Md5.hashStr("admin")
|
||||
: Md5.hashStr(data.password ?? "admin"),
|
||||
{
|
||||
expires: 15,
|
||||
});
|
||||
Cookies.set(
|
||||
"auto_login",
|
||||
JSON.stringify(auto_login.value),
|
||||
{
|
||||
expires: 15,
|
||||
}
|
||||
);
|
||||
Cookies.set("name", data.ip_address, {
|
||||
expires: 15,
|
||||
});
|
||||
Cookies.set("user_name", data.user_name ?? "admin", {
|
||||
expires: 15,
|
||||
});
|
||||
Cookies.set(
|
||||
"password",
|
||||
data.password == cache_password
|
||||
? data.password ?? Md5.hashStr("admin")
|
||||
: Md5.hashStr(data.password ?? "admin"),
|
||||
{
|
||||
expires: 15,
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
);
|
||||
} else {
|
||||
Cookies.remove("remember_password");
|
||||
Cookies.remove("auto_login");
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue