diff --git a/frontend/src/components/UpdateModal.vue b/frontend/src/components/UpdateModal.vue
new file mode 100644
index 0000000..c319fa0
--- /dev/null
+++ b/frontend/src/components/UpdateModal.vue
@@ -0,0 +1,234 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/frontend/src/views/Home.vue b/frontend/src/views/Home.vue
index e48a171..b509f9d 100644
--- a/frontend/src/views/Home.vue
+++ b/frontend/src/views/Home.vue
@@ -25,6 +25,13 @@
@confirmed="onNoticeConfirmed"
/>
+
+
+
-
@@ -242,15 +248,12 @@
diff --git a/frontend/src/views/Settings.vue b/frontend/src/views/Settings.vue
index 9956aff..38610b6 100644
--- a/frontend/src/views/Settings.vue
+++ b/frontend/src/views/Settings.vue
@@ -1,11 +1,11 @@
@@ -206,7 +221,7 @@ onMounted(() => {
-
+
@@ -241,9 +256,9 @@ onMounted(() => {
-
@@ -336,7 +351,10 @@ onMounted(() => {
handleSettingChange('Function', 'HistoryRetentionTime', value)"
+ @change="
+ (value: any) =>
+ handleSettingChange('Function', 'HistoryRetentionTime', value)
+ "
:options="historyRetentionOptions"
size="large"
style="width: 100%"
@@ -353,7 +371,9 @@ onMounted(() => {
handleSettingChange('Function', 'IfAllowSleep', checked)"
+ @change="
+ (checked: any) => handleSettingChange('Function', 'IfAllowSleep', checked)
+ "
size="large"
style="width: 100%"
>
@@ -374,7 +394,9 @@ onMounted(() => {
handleSettingChange('Function', 'IfSilence', checked)"
+ @change="
+ (checked: any) => handleSettingChange('Function', 'IfSilence', checked)
+ "
size="large"
style="width: 100%"
>
@@ -387,7 +409,9 @@ onMounted(() => {
handleSettingChange('Notify', 'SendTaskResultTime', value)"
+ @change="
+ (value: any) => handleSettingChange('Notify', 'SendTaskResultTime', value)
+ "
:options="sendTaskResultTimeOptions"
size="large"
style="width: 100%"
@@ -517,7 +551,9 @@ onMounted(() => {
handleSettingChange('Notify', 'IfSendStatistic', checked)"
+ @change="
+ (checked: any) => handleSettingChange('Notify', 'IfSendStatistic', checked)
+ "
size="large"
style="width: 100%"
>
@@ -536,7 +572,9 @@ onMounted(() => {
handleSettingChange('Notify', 'IfSendSixStar', checked)"
+ @change="
+ (checked: any) => handleSettingChange('Notify', 'IfSendSixStar', checked)
+ "
size="large"
style="width: 100%"
>
@@ -563,7 +601,9 @@ onMounted(() => {
handleSettingChange('Notify', 'IfPushPlyer', checked)"
+ @change="
+ (checked: any) => handleSettingChange('Notify', 'IfPushPlyer', checked)
+ "
size="large"
style="width: 100%"
>
@@ -578,9 +618,9 @@ onMounted(() => {
{
{
{
-
{
{
handleSettingChange('Update', 'IfAutoUpdate', checked)"
+ @change="
+ (checked: any) => handleSettingChange('Update', 'IfAutoUpdate', checked)
+ "
size="large"
style="width: 100%"
>
@@ -864,13 +936,17 @@ onMounted(() => {
handleSettingChange('Start', 'IfSelfStart', checked)"
+ @change="
+ (checked: any) => handleSettingChange('Start', 'IfSelfStart', checked)
+ "
size="large"
style="width: 100%"
>
@@ -949,7 +1033,10 @@ onMounted(() => {
handleSettingChange('Start', 'IfMinimizeDirectly', checked)"
+ @change="
+ (checked: any) =>
+ handleSettingChange('Start', 'IfMinimizeDirectly', checked)
+ "
size="large"
style="width: 100%"
>
@@ -1023,12 +1110,8 @@ onMounted(() => {
-
- 查看日志
-
-
- 打开开发者工具
-
+ 查看日志
+ 打开开发者工具
@@ -1052,11 +1135,7 @@ onMounted(() => {
软件官网
查看最新版本和功能介绍
-
+
访问官网
@@ -1070,9 +1149,9 @@ onMounted(() => {
当前版本:
- v1.0.0
+ {{app_version}}
@@ -1127,6 +1202,28 @@ onMounted(() => {
+
+
+
+ 当前后端版本:
+ {{backendUpdateInfo?.current_version}}
+
+
+ 当前后端哈希值:
+ {{backendUpdateInfo?.current_hash}}
+
+
+
+
+ 当前时间?:
+ {{backendUpdateInfo?.current_time}}
+
+
+ 是否需要更新:
+ {{backendUpdateInfo?.if_need_update}}
+
+
+