diff --git a/src/pages/mine/account/index.vue b/src/pages/mine/account/index.vue
index 84902d1..b7376ae 100644
--- a/src/pages/mine/account/index.vue
+++ b/src/pages/mine/account/index.vue
@@ -2,27 +2,10 @@
-
-
-
+
+
+
@@ -30,84 +13,28 @@
-
-
+
+
-
-
-
+
+
+
提交
-
+
-
-
+
+
-
+
{{ mobileCountdown > 0 ? `${mobileCountdown}s后重新发送` : "发送验证码" }}
@@ -117,37 +44,14 @@
提交
-
+
-
-
+
+
-
+
{{ emailCountdown > 0 ? `${emailCountdown}s后重新发送` : "发送验证码" }}
@@ -161,172 +65,172 @@
diff --git a/src/pages/mine/index.vue b/src/pages/mine/index.vue
index 38ac1a0..7e0b1ae 100644
--- a/src/pages/mine/index.vue
+++ b/src/pages/mine/index.vue
@@ -212,7 +212,7 @@ import { getAccessToken } from "@/utils/auth";
import { formatBytes } from "@/utils/format";
const toast = useToast();
-const { messageBox } = useDialog();
+ const { confirm } = useDialog();
const userStore = useUserStore();
const themeStore = useThemeStore();
@@ -391,10 +391,10 @@ const handleClearCache = async () => {
const handleLogout = async () => {
try {
- await messageBox({
+ await confirm({
title: "提示",
msg: "确定要退出登录吗?",
- type: "warning",
+ headerImage: "warning",
});
userStore.logout();
toast.success("已退出登录");
diff --git a/src/pages/mine/profile/complete-profile.vue b/src/pages/mine/profile/complete-profile.vue
index e6d2369..6cc24be 100644
--- a/src/pages/mine/profile/complete-profile.vue
+++ b/src/pages/mine/profile/complete-profile.vue
@@ -15,27 +15,21 @@
-
-
+
@@ -45,22 +39,11 @@
*
-
+
-
+
@@ -79,27 +62,15 @@
手机号
*
-
+
diff --git a/src/pages/mine/settings/theme/index.vue b/src/pages/mine/settings/theme/index.vue
index 7bb6747..5988eb9 100644
--- a/src/pages/mine/settings/theme/index.vue
+++ b/src/pages/mine/settings/theme/index.vue
@@ -122,7 +122,7 @@ import { useToast, useDialog } from "@wot-ui/ui";
const { isDark, themeVars, themeColorOptions, toggleTheme, setThemeColor } = useTheme();
const toast = useToast();
-const { messageBox } = useDialog();
+ const { confirm } = useDialog();
// 创建响应式的计算属性
const isDarkMode = computed(() => isDark.value);
@@ -195,7 +195,7 @@ const applyCustomColor = () => {
// 重置为默认主题
const handleResetTheme = async () => {
try {
- await messageBox({ title: "确认重置", msg: "确定要重置为默认主题吗?", type: "warning" });
+ await confirm({ title: "确认重置", msg: "确定要重置为默认主题吗?", headerImage: "warning" });
setThemeColor(themeColorOptions[0]);
customColor.value = themeColorOptions[0].primary;
toast.success("已重置为默认主题");