chore: 更新依赖包版本

This commit is contained in:
Ray.Hao
2026-02-14 12:08:07 +08:00
parent 91977f4ff4
commit b050824da7
6 changed files with 5769 additions and 4718 deletions

View File

@@ -170,7 +170,8 @@ const handleOperateClick = (data: IObject) => {
confirmButtonText: "确定",
cancelButtonText: "取消",
}).then(
({ value }) => {
(result: any) => {
const value = result.value;
if (!value || value.length < 6) {
ElMessage.warning("密码至少需6位字符请重新输入");
return false;

View File

@@ -422,7 +422,7 @@ const handleOpenDialog = (type: DialogType) => {
async function handleUnbindMobile() {
if (!userProfile.value.mobile) return;
try {
const { value } = await ElMessageBox.prompt("请输入当前密码以解绑手机号", "解绑手机号", {
const result = await ElMessageBox.prompt("请输入当前密码以解绑手机号", "解绑手机号", {
type: "warning",
confirmButtonText: "确定",
cancelButtonText: "取消",
@@ -430,6 +430,7 @@ async function handleUnbindMobile() {
inputPlaceholder: "当前密码",
inputValidator: (val) => !!val || "请输入当前密码",
});
const value = (result as any).value;
await UserAPI.unbindMobile({ password: value });
ElMessage.success("手机号解绑成功");
await loadUserProfile();
@@ -441,7 +442,7 @@ async function handleUnbindMobile() {
async function handleUnbindEmail() {
if (!userProfile.value.email) return;
try {
const { value } = await ElMessageBox.prompt("请输入当前密码以解绑邮箱", "解绑邮箱", {
const result = await ElMessageBox.prompt("请输入当前密码以解绑邮箱", "解绑邮箱", {
type: "warning",
confirmButtonText: "确定",
cancelButtonText: "取消",
@@ -449,6 +450,7 @@ async function handleUnbindEmail() {
inputPlaceholder: "当前密码",
inputValidator: (val) => !!val || "请输入当前密码",
});
const value = (result as any).value;
await UserAPI.unbindEmail({ password: value });
ElMessage.success("邮箱解绑成功");
await loadUserProfile();

View File

@@ -133,7 +133,7 @@
</el-tag>
</template>
<!-- <el-option label="默认文本" value="" /> -->
<el-option v-for="type in tagType" :key="type" :label="type" :value="type">
<el-option v-for="type in tagType" :key="type" :label="type" :value="type as string">
<div flex-y-center gap-10px>
<el-tag :type="type">{{ formData.label ?? "字典标签" }}</el-tag>
<span>{{ type }}</span>
@@ -154,7 +154,6 @@
</template>
<script setup lang="ts">
import type { TagProps } from "element-plus";
import DictAPI from "@/api/system/dict";
import type { DictItemQueryParams, DictItem, DictItemForm } from "@/types/api";
@@ -184,7 +183,7 @@ const dialog = reactive({
const formData = reactive<DictItemForm>({});
// 标签类型
const tagType: TagProps["type"][] = ["primary", "success", "info", "warning", "danger"];
const tagType = ["primary", "success", "info", "warning", "danger"] as const;
const computedRules = computed(() => {
const rules: Partial<Record<string, any>> = {

View File

@@ -394,7 +394,8 @@ function handleResetPassword(row: UserItem): void {
inputPattern: /.{6,}/,
inputErrorMessage: "密码至少需要6位字符",
})
.then(({ value }) => {
.then((result: any) => {
const value = result.value;
return UserAPI.resetPassword(row.id, value);
})
.then(