diff --git a/src/common/Initializer.ts b/src/common/Initializer.ts
index 37bd0b1..66ad256 100644
--- a/src/common/Initializer.ts
+++ b/src/common/Initializer.ts
@@ -127,6 +127,7 @@ export default class Initializer {
let windows = (await global_data.getCurrentClient()?.getWindows())?.windows;
let $store = options.$store;
if (windows && $store) {
+ $store.commit("clearWindows");
$store.commit("setWindows", windows);
}
}
diff --git a/src/components/PlanDialog.vue b/src/components/PlanDialog.vue
index 8665d90..6b6c68c 100644
--- a/src/components/PlanDialog.vue
+++ b/src/components/PlanDialog.vue
@@ -252,7 +252,41 @@
$t("time") + ":"
}}
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -351,7 +385,7 @@
import { defineComponent, ref, Ref, watch, computed } from "vue";
import { useStore } from "src/store";
import GlobalData from "src/common/GlobalData";
-import { useQuasar } from "quasar";
+import { useQuasar, date as $date } from "quasar";
import { useI18n } from "vue-i18n";
import { StringKeyValueEntity } from "src/entities/StringKeyValueEntity";
import { PlanEntity } from "src/entities/PlanEntity";
@@ -632,6 +666,20 @@ export default defineComponent({
});
}
datas.value = temp;
+
+ // format time
+ {
+ let _times = time_.value.split(":");
+ if (Array.isArray(_times)) {
+ while (_times.length < 3) {
+ _times.push("00");
+ }
+ _times = _times.slice(0, 3);
+ time_.value = _times.join(":");
+ } else {
+ time_.value = "09:00:00";
+ }
+ }
}
for (let i = 1; i < datas.value.length; i += 2) {
diff --git a/src/entities/WSProtocol.ts b/src/entities/WSProtocol.ts
index e754b7d..e6d966a 100644
--- a/src/entities/WSProtocol.ts
+++ b/src/entities/WSProtocol.ts
@@ -1840,6 +1840,9 @@ export namespace Protocol {
minor_version = 0;
patch_version = 0;
tweak_version = 0;
+ kernel_version: string = "";
+ rootfs_version: string = "";
+
constructor() {
super();
this.command = Protocol.Commands.kRpcGetBuildInfo;
diff --git a/src/i18n/zh-CN/index.ts b/src/i18n/zh-CN/index.ts
index beee037..2af0032 100644
--- a/src/i18n/zh-CN/index.ts
+++ b/src/i18n/zh-CN/index.ts
@@ -235,7 +235,7 @@ export default {
thursday: "星期四",
friday: "星期五",
saturday: "星期六",
- sunday: "星期七",
+ sunday: "星期日",
"timing cycle": "定时执行",
time: "时间",
loop: "循环",
diff --git a/src/pages/Login.vue b/src/pages/Login.vue
index 3040ac7..7527bb5 100644
--- a/src/pages/Login.vue
+++ b/src/pages/Login.vue
@@ -2,7 +2,7 @@
-
+
{{ $t("login") }}