refactor: 更新 useDialog 调用方式

This commit is contained in:
Mickey wu
2026-05-24 11:59:45 +08:00
parent 03d1d54bc1
commit 705182de67
4 changed files with 10 additions and 10 deletions

View File

@@ -126,7 +126,7 @@ import UserAPI, { type UserProfileForm } from "@/api/user";
import FileAPI, { type FileInfo } from "@/api/file";
const toast = useToast();
const { messageBox } = useDialog();
const { confirm } = useDialog();
const userStore = useUserStore();
const redirect = ref("/pages/index/index");
@@ -258,7 +258,7 @@ const handleComplete = async () => {
const handleSkip = async () => {
try {
await messageBox({ title: "提示", msg: "跳过信息完善可能会影响部分功能使用,确定要跳过吗?", type: "warning" });
await confirm({ title: "提示", msg: "跳过信息完善可能会影响部分功能使用,确定要跳过吗?", headerImage: "warning" });
uni.reLaunch({ url: redirect.value });
} catch {
// 用户取消