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

@@ -57,7 +57,7 @@
"@wangeditor-next/editor-for-vue": "^5.1.14", "@wangeditor-next/editor-for-vue": "^5.1.14",
"animate.css": "^4.1.1", "animate.css": "^4.1.1",
"axios": "^1.13.2", "axios": "^1.13.2",
"codemirror": "^5.65.20", "codemirror": "^5.65.21",
"codemirror-editor-vue3": "^2.8.0", "codemirror-editor-vue3": "^2.8.0",
"echarts": "^6.0.0", "echarts": "^6.0.0",
"element-plus": "^2.13.0", "element-plus": "^2.13.0",
@@ -72,13 +72,13 @@
"vue": "^3.5.26", "vue": "^3.5.26",
"vue-draggable-plus": "^0.6.0", "vue-draggable-plus": "^0.6.0",
"vue-i18n": "^11.2.7", "vue-i18n": "^11.2.7",
"vue-router": "^4.6.4", "vue-router": "^5.0.2",
"vxe-table": "~4.6.25" "vxe-table": "~4.6.25"
}, },
"devDependencies": { "devDependencies": {
"@commitlint/cli": "^20.2.0", "@commitlint/cli": "^20.2.0",
"@commitlint/config-conventional": "^20.2.0", "@commitlint/config-conventional": "^20.2.0",
"@eslint/js": "^9.39.2", "@eslint/js": "^10.0.1",
"@iconify/utils": "^3.1.0", "@iconify/utils": "^3.1.0",
"@testing-library/user-event": "^14.6.1", "@testing-library/user-event": "^14.6.1",
"@testing-library/vue": "^8.1.0", "@testing-library/vue": "^8.1.0",
@@ -97,11 +97,11 @@
"autoprefixer": "^10.4.23", "autoprefixer": "^10.4.23",
"commitizen": "^4.3.1", "commitizen": "^4.3.1",
"cz-git": "^1.12.0", "cz-git": "^1.12.0",
"eslint": "^9.39.2", "eslint": "^10.0.0",
"eslint-config-prettier": "^10.1.8", "eslint-config-prettier": "^10.1.8",
"eslint-plugin-prettier": "^5.5.4", "eslint-plugin-prettier": "^5.5.4",
"eslint-plugin-vue": "^10.6.2", "eslint-plugin-vue": "^10.6.2",
"globals": "^16.5.0", "globals": "^17.3.0",
"happy-dom": "^20.0.11", "happy-dom": "^20.0.11",
"husky": "^9.1.7", "husky": "^9.1.7",
"lint-staged": "^16.2.7", "lint-staged": "^16.2.7",
@@ -110,24 +110,24 @@
"postcss-scss": "^4.0.9", "postcss-scss": "^4.0.9",
"prettier": "^3.7.4", "prettier": "^3.7.4",
"sass": "^1.97.1", "sass": "^1.97.1",
"stylelint": "^16.26.1", "stylelint": "^17.3.0",
"stylelint-config-html": "^1.1.0", "stylelint-config-html": "^1.1.0",
"stylelint-config-recess-order": "^7.4.0", "stylelint-config-recess-order": "^7.4.0",
"stylelint-config-recommended": "^17.0.0", "stylelint-config-recommended": "^18.0.0",
"stylelint-config-recommended-scss": "^16.0.2", "stylelint-config-recommended-scss": "^17.0.0",
"stylelint-config-recommended-vue": "^1.6.1", "stylelint-config-recommended-vue": "^1.6.1",
"stylelint-prettier": "^5.0.3", "stylelint-prettier": "^5.0.3",
"terser": "^5.44.1", "terser": "^5.44.1",
"typescript": "^5.9.3", "typescript": "^5.9.3",
"typescript-eslint": "^8.50.1", "typescript-eslint": "^8.50.1",
"unocss": "^66.5.10", "unocss": "^66.5.10",
"unplugin-auto-import": "^20.3.0", "unplugin-auto-import": "^21.0.0",
"unplugin-vue-components": "^30.0.0", "unplugin-vue-components": "^31.0.0",
"vite": "^7.3.0", "vite": "^7.3.0",
"vite-plugin-mock-dev-server": "^2.0.7", "vite-plugin-mock-dev-server": "^2.0.7",
"vitest": "^4.0.16", "vitest": "^4.0.16",
"vue-eslint-parser": "^10.2.0", "vue-eslint-parser": "^10.2.0",
"vue-tsc": "^3.2.1" "vue-tsc": "^3.2.4"
}, },
"engines": { "engines": {
"node": "^20.19.0 || >=22.12.0" "node": "^20.19.0 || >=22.12.0"

10126
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

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

View File

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

View File

@@ -133,7 +133,7 @@
</el-tag> </el-tag>
</template> </template>
<!-- <el-option label="默认文本" value="" /> --> <!-- <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> <div flex-y-center gap-10px>
<el-tag :type="type">{{ formData.label ?? "字典标签" }}</el-tag> <el-tag :type="type">{{ formData.label ?? "字典标签" }}</el-tag>
<span>{{ type }}</span> <span>{{ type }}</span>
@@ -154,7 +154,6 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import type { TagProps } from "element-plus";
import DictAPI from "@/api/system/dict"; import DictAPI from "@/api/system/dict";
import type { DictItemQueryParams, DictItem, DictItemForm } from "@/types/api"; import type { DictItemQueryParams, DictItem, DictItemForm } from "@/types/api";
@@ -184,7 +183,7 @@ const dialog = reactive({
const formData = reactive<DictItemForm>({}); 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 computedRules = computed(() => {
const rules: Partial<Record<string, any>> = { const rules: Partial<Record<string, any>> = {

View File

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