chore: 更新依赖包版本
This commit is contained in:
22
package.json
22
package.json
@@ -57,7 +57,7 @@
|
||||
"@wangeditor-next/editor-for-vue": "^5.1.14",
|
||||
"animate.css": "^4.1.1",
|
||||
"axios": "^1.13.2",
|
||||
"codemirror": "^5.65.20",
|
||||
"codemirror": "^5.65.21",
|
||||
"codemirror-editor-vue3": "^2.8.0",
|
||||
"echarts": "^6.0.0",
|
||||
"element-plus": "^2.13.0",
|
||||
@@ -72,13 +72,13 @@
|
||||
"vue": "^3.5.26",
|
||||
"vue-draggable-plus": "^0.6.0",
|
||||
"vue-i18n": "^11.2.7",
|
||||
"vue-router": "^4.6.4",
|
||||
"vue-router": "^5.0.2",
|
||||
"vxe-table": "~4.6.25"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@commitlint/cli": "^20.2.0",
|
||||
"@commitlint/config-conventional": "^20.2.0",
|
||||
"@eslint/js": "^9.39.2",
|
||||
"@eslint/js": "^10.0.1",
|
||||
"@iconify/utils": "^3.1.0",
|
||||
"@testing-library/user-event": "^14.6.1",
|
||||
"@testing-library/vue": "^8.1.0",
|
||||
@@ -97,11 +97,11 @@
|
||||
"autoprefixer": "^10.4.23",
|
||||
"commitizen": "^4.3.1",
|
||||
"cz-git": "^1.12.0",
|
||||
"eslint": "^9.39.2",
|
||||
"eslint": "^10.0.0",
|
||||
"eslint-config-prettier": "^10.1.8",
|
||||
"eslint-plugin-prettier": "^5.5.4",
|
||||
"eslint-plugin-vue": "^10.6.2",
|
||||
"globals": "^16.5.0",
|
||||
"globals": "^17.3.0",
|
||||
"happy-dom": "^20.0.11",
|
||||
"husky": "^9.1.7",
|
||||
"lint-staged": "^16.2.7",
|
||||
@@ -110,24 +110,24 @@
|
||||
"postcss-scss": "^4.0.9",
|
||||
"prettier": "^3.7.4",
|
||||
"sass": "^1.97.1",
|
||||
"stylelint": "^16.26.1",
|
||||
"stylelint": "^17.3.0",
|
||||
"stylelint-config-html": "^1.1.0",
|
||||
"stylelint-config-recess-order": "^7.4.0",
|
||||
"stylelint-config-recommended": "^17.0.0",
|
||||
"stylelint-config-recommended-scss": "^16.0.2",
|
||||
"stylelint-config-recommended": "^18.0.0",
|
||||
"stylelint-config-recommended-scss": "^17.0.0",
|
||||
"stylelint-config-recommended-vue": "^1.6.1",
|
||||
"stylelint-prettier": "^5.0.3",
|
||||
"terser": "^5.44.1",
|
||||
"typescript": "^5.9.3",
|
||||
"typescript-eslint": "^8.50.1",
|
||||
"unocss": "^66.5.10",
|
||||
"unplugin-auto-import": "^20.3.0",
|
||||
"unplugin-vue-components": "^30.0.0",
|
||||
"unplugin-auto-import": "^21.0.0",
|
||||
"unplugin-vue-components": "^31.0.0",
|
||||
"vite": "^7.3.0",
|
||||
"vite-plugin-mock-dev-server": "^2.0.7",
|
||||
"vitest": "^4.0.16",
|
||||
"vue-eslint-parser": "^10.2.0",
|
||||
"vue-tsc": "^3.2.1"
|
||||
"vue-tsc": "^3.2.4"
|
||||
},
|
||||
"engines": {
|
||||
"node": "^20.19.0 || >=22.12.0"
|
||||
|
||||
10448
pnpm-lock.yaml
generated
10448
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -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;
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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>> = {
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user