From 9207ca69bbd4fd6318793e0c16a7f7feed674ddb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8?= Date: Sat, 9 May 2026 14:58:02 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=89=E8=A3=85il8n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 1 + pnpm-lock.yaml | 71 ++++++++++++++++++++++++++++++++++++++ src/api/types/profile.d.ts | 3 +- 3 files changed, 73 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index bf84995..6606752 100644 --- a/package.json +++ b/package.json @@ -31,6 +31,7 @@ "pinia": "^3.0.4", "qrcode": "^1.5.4", "vue": "^3.5.29", + "vue-i18n": "^11.4.2", "vue-router": "^5.0.3", "xlsx": "^0.18.5" }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index cf38f76..69c9227 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -17,6 +17,9 @@ importers: '@element-plus/icons-vue': specifier: ^2.3.2 version: 2.3.2(vue@3.5.29(typescript@5.9.3)) + '@imengyu/vue3-context-menu': + specifier: ^1.5.4 + version: 1.5.4 '@vueuse/core': specifier: ^14.2.1 version: 14.2.1(vue@3.5.29(typescript@5.9.3)) @@ -50,6 +53,9 @@ importers: vue: specifier: ^3.5.29 version: 3.5.29(typescript@5.9.3) + vue-i18n: + specifier: ^11.4.2 + version: 11.4.2(vue@3.5.29(typescript@5.9.3)) vue-router: specifier: ^5.0.3 version: 5.0.3(@vue/compiler-sfc@3.5.29)(pinia@3.0.4(typescript@5.9.3)(vue@3.5.29(typescript@5.9.3)))(vue@3.5.29(typescript@5.9.3)) @@ -502,6 +508,28 @@ packages: resolution: {integrity: sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==} engines: {node: '>=18.18'} + '@imengyu/vue-scroll-rect@0.1.10': + resolution: {integrity: sha512-2Cxm7WnRP7y9vNqv5YQvh4fasWZ1q5kW5cQyr3+647e4hEiS3NsgUZLaZb5+F7qOHGlIaERNYuWZVXIo7L32ug==} + + '@imengyu/vue3-context-menu@1.5.4': + resolution: {integrity: sha512-/a6Quyn3V320/Mi6UoH+6wSTBYrln70RovT3iyfoXQQpIHpC7ZPWObzS0BXQTRlWtyJB92XmGDT703UxSO8Tvg==} + + '@intlify/core-base@11.4.2': + resolution: {integrity: sha512-7fpuCcVmeLv2T9qHsARqGvh8xt+sV2fH+Q+gMHFwB/rPXzo85DpbJFKn7dBH1L5p0c2cSh2DW+2h/64EKrISmA==} + engines: {node: '>= 16'} + + '@intlify/devtools-types@11.4.2': + resolution: {integrity: sha512-3u8EN1kB6EMSi96KXs5k7a8y2X2g4+h3X6iwVZU47cP4n+mTuq//WMjG588BzSp/2XQ/dTXo2BLUXX+XS+PNfA==} + engines: {node: '>= 16'} + + '@intlify/message-compiler@11.4.2': + resolution: {integrity: sha512-a6CDSGSMTGrg0BjD97x8TBYPf7qQMDlZipJ6UDfv/pd4OIym8TMlHu3MsH0bTNnRdAG2D6EFEykIgiQPqvtTkA==} + engines: {node: '>= 16'} + + '@intlify/shared@11.4.2': + resolution: {integrity: sha512-NzpHbguRCsOHDwxmlBa9qu/imc+/QWgsYUaK6FZeNC0wK8QfAbhqrktEp/haVzxU1aikH8IX4ytD+mfFEMi/9A==} + engines: {node: '>= 16'} + '@jridgewell/gen-mapping@0.3.13': resolution: {integrity: sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==} @@ -1071,6 +1099,9 @@ packages: '@vue/compiler-ssr@3.5.29': resolution: {integrity: sha512-Y/ARJZE6fpjzL5GH/phJmsFwx3g6t2KmHKHx5q+MLl2kencADKIrhH5MLF6HHpRMmlRAYBRSvv347Mepf1zVNw==} + '@vue/devtools-api@6.6.4': + resolution: {integrity: sha512-sGhTPMuXqZ1rVOk32RylztWkfXTRhuS7vgAKv0zjqk8gbsHkJ7xfFf+jbySxt7tWObEJwyKaHMikV/WGDiQm8g==} + '@vue/devtools-api@7.7.9': resolution: {integrity: sha512-kIE8wvwlcZ6TJTbNeU2HQNtaxLx3a84aotTITUuL/4bzfPxzajGBOoqjMhwZJ8L9qFYDU/lAYMEEm11dnZOD6g==} @@ -2440,6 +2471,12 @@ packages: peerDependencies: eslint: ^8.57.0 || ^9.0.0 || ^10.0.0 + vue-i18n@11.4.2: + resolution: {integrity: sha512-sADDeKXqAGsPX6tK3t3y2ZiMpbVWN12tG+MhTiJ06rVoh58eGtM4wFyw3uWGbVkXByVp9Ne/AP+nSSzI+J9OAQ==} + engines: {node: '>= 16'} + peerDependencies: + vue: ^3.0.0 + vue-router@5.0.3: resolution: {integrity: sha512-nG1c7aAFac7NYj8Hluo68WyWfc41xkEjaR0ViLHCa3oDvTQ/nIuLJlXJX1NUPw/DXzx/8+OKMng045HHQKQKWw==} peerDependencies: @@ -2880,6 +2917,30 @@ snapshots: '@humanwhocodes/retry@0.4.3': {} + '@imengyu/vue-scroll-rect@0.1.10': {} + + '@imengyu/vue3-context-menu@1.5.4': + dependencies: + '@imengyu/vue-scroll-rect': 0.1.10 + + '@intlify/core-base@11.4.2': + dependencies: + '@intlify/devtools-types': 11.4.2 + '@intlify/message-compiler': 11.4.2 + '@intlify/shared': 11.4.2 + + '@intlify/devtools-types@11.4.2': + dependencies: + '@intlify/core-base': 11.4.2 + '@intlify/shared': 11.4.2 + + '@intlify/message-compiler@11.4.2': + dependencies: + '@intlify/shared': 11.4.2 + source-map-js: 1.2.1 + + '@intlify/shared@11.4.2': {} + '@jridgewell/gen-mapping@0.3.13': dependencies: '@jridgewell/sourcemap-codec': 1.5.5 @@ -3367,6 +3428,8 @@ snapshots: '@vue/compiler-dom': 3.5.29 '@vue/shared': 3.5.29 + '@vue/devtools-api@6.6.4': {} + '@vue/devtools-api@7.7.9': dependencies: '@vue/devtools-kit': 7.7.9 @@ -4774,6 +4837,14 @@ snapshots: transitivePeerDependencies: - supports-color + vue-i18n@11.4.2(vue@3.5.29(typescript@5.9.3)): + dependencies: + '@intlify/core-base': 11.4.2 + '@intlify/devtools-types': 11.4.2 + '@intlify/shared': 11.4.2 + '@vue/devtools-api': 6.6.4 + vue: 3.5.29(typescript@5.9.3) + vue-router@5.0.3(@vue/compiler-sfc@3.5.29)(pinia@3.0.4(typescript@5.9.3)(vue@3.5.29(typescript@5.9.3)))(vue@3.5.29(typescript@5.9.3)): dependencies: '@babel/generator': 7.29.1 diff --git a/src/api/types/profile.d.ts b/src/api/types/profile.d.ts index d3e3649..13b3efc 100644 --- a/src/api/types/profile.d.ts +++ b/src/api/types/profile.d.ts @@ -44,8 +44,7 @@ export interface BindEmailParams { } // 修改用户名参数类型 -export interface EditUsernameParams { - user_id: number +export interface EditUsernameParams { username: string }