From 687b6db96b7467501e731e0ed22e6799e32346ea Mon Sep 17 00:00:00 2001
From: Tyke Chen <190473011+chentyke@users.noreply.github.com>
Date: Fri, 10 Jul 2026 11:38:39 +0800
Subject: [PATCH] fix: resolve mobile type and lint errors
---
main/manager-mobile/src/App.vue | 17 +-
main/manager-mobile/src/i18n/de.ts | 1094 ++++++++---------
main/manager-mobile/src/i18n/index.ts | 20 +-
main/manager-mobile/src/i18n/pt_BR.ts | 6 +-
main/manager-mobile/src/i18n/vi.ts | 1094 ++++++++---------
main/manager-mobile/src/i18n/zh_TW.ts | 6 +-
main/manager-mobile/src/layouts/default.vue | 2 +-
.../src/layouts/fg-tabbar/fg-tabbar.vue | 6 +-
main/manager-mobile/src/layouts/tabbar.vue | 2 +-
main/manager-mobile/src/main.ts | 13 +-
.../agent/components/AgentSnapshotPanel.vue | 2 +-
main/manager-mobile/src/pages/agent/index.vue | 2 +-
main/manager-mobile/src/pages/agent/tools.vue | 2 +-
.../components/ultrasonic-config.vue | 132 +-
.../components/wifi-selector.vue | 2 +-
.../src/pages/device-config/index.vue | 24 +-
.../manager-mobile/src/pages/device/index.vue | 2 +-
.../src/pages/forgot-password/index.vue | 264 ++--
main/manager-mobile/src/pages/index/index.vue | 4 +-
main/manager-mobile/src/pages/login/index.vue | 4 +-
.../src/pages/register/index.vue | 111 +-
.../src/pages/settings/index.vue | 4 +-
.../src/pages/voiceprint/index.vue | 2 +-
main/manager-mobile/src/store/config.ts | 2 +-
main/manager-mobile/src/store/lang.ts | 7 +-
main/manager-mobile/src/utils/index.ts | 2 +-
main/manager-mobile/src/wot-design-uni.d.ts | 30 +
main/manager-mobile/tsconfig.json | 1 -
28 files changed, 1441 insertions(+), 1416 deletions(-)
create mode 100644 main/manager-mobile/src/wot-design-uni.d.ts
diff --git a/main/manager-mobile/src/App.vue b/main/manager-mobile/src/App.vue
index d31d32d7..a62d43fc 100644
--- a/main/manager-mobile/src/App.vue
+++ b/main/manager-mobile/src/App.vue
@@ -1,9 +1,9 @@
@@ -86,18 +84,18 @@ onMounted(() => {
- {{ t('deviceConfig.configMethod') }}
-
+ {{ t('deviceConfig.configMethod') }}
+
- {{ t('deviceConfig.configMethod') }}
-
-
- {{ configType === 'wifi' ? t('deviceConfig.wifiConfig') : t('deviceConfig.ultrasonicConfig') }}
-
+ {{ t('deviceConfig.configMethod') }}
+
+
+ {{ configType === 'wifi' ? t('deviceConfig.wifiConfig') : t('deviceConfig.ultrasonicConfig') }}
+
@@ -105,8 +103,8 @@ onMounted(() => {
- {{ t('deviceConfig.networkConfig') }}
-
+ {{ t('deviceConfig.networkConfig') }}
+
diff --git a/main/manager-mobile/src/pages/device/index.vue b/main/manager-mobile/src/pages/device/index.vue
index f1fdcc26..4c38199e 100644
--- a/main/manager-mobile/src/pages/device/index.vue
+++ b/main/manager-mobile/src/pages/device/index.vue
@@ -1,7 +1,7 @@
@@ -471,7 +476,7 @@ onMounted(async () => {
min-height: 100vh;
&::before {
- content: "";
+ content: '';
position: absolute;
top: -50%;
left: -50%;
@@ -713,10 +718,7 @@ onMounted(async () => {
margin-bottom: 30rpx;
box-shadow: 0 8rpx 24rpx rgba(102, 126, 234, 0.3);
transition: all 0.3s ease;
- background-color: var(
- --wot-button-primary-bg-color,
- var(--wot-color-theme, #4d80f0)
- );
+ background-color: var(--wot-button-primary-bg-color, var(--wot-color-theme, #4d80f0));
text-align: center;
line-height: 80rpx;
diff --git a/main/manager-mobile/src/pages/index/index.vue b/main/manager-mobile/src/pages/index/index.vue
index f8b5625a..4d73a155 100644
--- a/main/manager-mobile/src/pages/index/index.vue
+++ b/main/manager-mobile/src/pages/index/index.vue
@@ -14,7 +14,7 @@
import type { Agent } from '@/api/agent/types'
import { computed, onMounted, ref } from 'vue'
// 在组件挂载后设置导航栏标题
-import { useMessage } from 'wot-design-uni'
+import { useMessage } from 'wot-design-uni/components/wd-message-box'
import useZPaging from 'z-paging/components/z-paging/js/hooks/useZPaging.js'
import { createAgent, deleteAgent, getAgentList } from '@/api/agent/agent'
import { t } from '@/i18n'
@@ -167,7 +167,7 @@ function openCreateDialog() {
msg: '',
inputPlaceholder: t('home.inputPlaceholder'),
inputValue: '',
- inputPattern: /^.{1,64}$/i,
+ inputPattern: /^.{1,64}$/,
inputError: t('home.createError'),
confirmButtonText: t('home.createNow'),
cancelButtonText: t('common.cancel'),
diff --git a/main/manager-mobile/src/pages/login/index.vue b/main/manager-mobile/src/pages/login/index.vue
index adaf5fb3..f8fd6c0c 100644
--- a/main/manager-mobile/src/pages/login/index.vue
+++ b/main/manager-mobile/src/pages/login/index.vue
@@ -401,7 +401,9 @@ onMounted(async () => {
{{ t('login.userAgreement') }}
- |
+
+ {{ '|' }}
+
{{ t('login.privacyPolicy') }}
diff --git a/main/manager-mobile/src/pages/register/index.vue b/main/manager-mobile/src/pages/register/index.vue
index 5004b5d8..0484b137 100644
--- a/main/manager-mobile/src/pages/register/index.vue
+++ b/main/manager-mobile/src/pages/register/index.vue
@@ -9,15 +9,14 @@
@@ -385,41 +383,41 @@ onMounted(async () => {
-
+ v-model="formData.password"
+ custom-class="styled-input"
+ no-border
+ :placeholder="t('register.enterPassword')"
+ show-password
+ :maxlength="20"
+ />
+
-
+ v-model="formData.confirmPassword"
+ custom-class="styled-input"
+ no-border
+ :placeholder="t('register.confirmPassword')"
+ show-password
+ :maxlength="20"
+ />
+
-
-
-
+ v-model="formData.captcha"
+ custom-class="styled-input"
+ no-border
+ :placeholder="t('register.enterCode')"
+ :maxlength="6"
+ />
+
+
+
@@ -427,21 +425,21 @@ onMounted(async () => {
-
- {{ smsCountdown > 0 ? `${smsCountdown}s` : t('register.getCode') }}
-
+ v-model="formData.mobileCaptcha"
+ custom-class="styled-input"
+ no-border
+ :placeholder="t('register.enterCode')"
+ type="number"
+ :maxlength="6"
+ />
+
+ {{ smsCountdown > 0 ? `${smsCountdown}s` : t('register.getCode') }}
+
@@ -462,7 +460,6 @@ onMounted(async () => {
{{ t('register.loginNow') }}
-
@@ -508,8 +505,6 @@ onMounted(async () => {
-
-
diff --git a/main/manager-mobile/src/pages/settings/index.vue b/main/manager-mobile/src/pages/settings/index.vue
index 9ecbbbc1..ca3e02d4 100644
--- a/main/manager-mobile/src/pages/settings/index.vue
+++ b/main/manager-mobile/src/pages/settings/index.vue
@@ -11,7 +11,7 @@