Commit 5434be460cb27a4653292fdea8a8c9cc95871e3b
1 parent
46c93b63
chore: use unplugin i18n
Showing
4 changed files
with
73 additions
and
46 deletions
yudao-ui-admin-vue3/build/vite/index.ts
| 1 | import { resolve } from 'path' | 1 | import { resolve } from 'path' |
| 2 | import Vue from '@vitejs/plugin-vue' | 2 | import Vue from '@vitejs/plugin-vue' |
| 3 | import VueJsx from '@vitejs/plugin-vue-jsx' | 3 | import VueJsx from '@vitejs/plugin-vue-jsx' |
| 4 | -import VueI18n from '@intlify/vite-plugin-vue-i18n' | ||
| 5 | import WindiCSS from 'vite-plugin-windicss' | 4 | import WindiCSS from 'vite-plugin-windicss' |
| 6 | import progress from 'vite-plugin-progress' | 5 | import progress from 'vite-plugin-progress' |
| 7 | import EslintPlugin from 'vite-plugin-eslint' | 6 | import EslintPlugin from 'vite-plugin-eslint' |
| @@ -9,6 +8,7 @@ import PurgeIcons from 'vite-plugin-purge-icons' | @@ -9,6 +8,7 @@ import PurgeIcons from 'vite-plugin-purge-icons' | ||
| 9 | import { ViteEjsPlugin } from 'vite-plugin-ejs' | 8 | import { ViteEjsPlugin } from 'vite-plugin-ejs' |
| 10 | import viteCompression from 'vite-plugin-compression' | 9 | import viteCompression from 'vite-plugin-compression' |
| 11 | import vueSetupExtend from 'vite-plugin-vue-setup-extend' | 10 | import vueSetupExtend from 'vite-plugin-vue-setup-extend' |
| 11 | +import VueI18nPlugin from '@intlify/unplugin-vue-i18n/vite' | ||
| 12 | import { createSvgIconsPlugin } from 'vite-plugin-svg-icons' | 12 | import { createSvgIconsPlugin } from 'vite-plugin-svg-icons' |
| 13 | import { | 13 | import { |
| 14 | createStyleImportPlugin, | 14 | createStyleImportPlugin, |
| @@ -51,7 +51,7 @@ export function createVitePlugins(VITE_APP_TITLE: string) { | @@ -51,7 +51,7 @@ export function createVitePlugins(VITE_APP_TITLE: string) { | ||
| 51 | cache: false, | 51 | cache: false, |
| 52 | include: ['src/**/*.vue', 'src/**/*.ts', 'src/**/*.tsx'] // 检查的文件 | 52 | include: ['src/**/*.vue', 'src/**/*.ts', 'src/**/*.tsx'] // 检查的文件 |
| 53 | }), | 53 | }), |
| 54 | - VueI18n({ | 54 | + VueI18nPlugin({ |
| 55 | runtimeOnly: true, | 55 | runtimeOnly: true, |
| 56 | compositionOnly: true, | 56 | compositionOnly: true, |
| 57 | include: [resolve(__dirname, 'src/locales/**')] | 57 | include: [resolve(__dirname, 'src/locales/**')] |
yudao-ui-admin-vue3/package.json
| @@ -58,7 +58,7 @@ | @@ -58,7 +58,7 @@ | ||
| 58 | "@commitlint/cli": "^17.3.0", | 58 | "@commitlint/cli": "^17.3.0", |
| 59 | "@commitlint/config-conventional": "^17.3.0", | 59 | "@commitlint/config-conventional": "^17.3.0", |
| 60 | "@iconify/json": "^2.1.153", | 60 | "@iconify/json": "^2.1.153", |
| 61 | - "@intlify/vite-plugin-vue-i18n": "^6.0.3", | 61 | + "@intlify/unplugin-vue-i18n": "^0.8.1", |
| 62 | "@purge-icons/generated": "^0.9.0", | 62 | "@purge-icons/generated": "^0.9.0", |
| 63 | "@types/intro.js": "^5.1.0", | 63 | "@types/intro.js": "^5.1.0", |
| 64 | "@types/lodash-es": "^4.17.6", | 64 | "@types/lodash-es": "^4.17.6", |
yudao-ui-admin-vue3/pnpm-lock.yaml
| @@ -5,7 +5,7 @@ specifiers: | @@ -5,7 +5,7 @@ specifiers: | ||
| 5 | '@commitlint/config-conventional': ^17.3.0 | 5 | '@commitlint/config-conventional': ^17.3.0 |
| 6 | '@iconify/iconify': ^3.0.1 | 6 | '@iconify/iconify': ^3.0.1 |
| 7 | '@iconify/json': ^2.1.153 | 7 | '@iconify/json': ^2.1.153 |
| 8 | - '@intlify/vite-plugin-vue-i18n': ^6.0.3 | 8 | + '@intlify/unplugin-vue-i18n': ^0.8.1 |
| 9 | '@purge-icons/generated': ^0.9.0 | 9 | '@purge-icons/generated': ^0.9.0 |
| 10 | '@types/intro.js': ^5.1.0 | 10 | '@types/intro.js': ^5.1.0 |
| 11 | '@types/lodash-es': ^4.17.6 | 11 | '@types/lodash-es': ^4.17.6 |
| @@ -117,7 +117,7 @@ devDependencies: | @@ -117,7 +117,7 @@ devDependencies: | ||
| 117 | '@commitlint/cli': 17.3.0 | 117 | '@commitlint/cli': 17.3.0 |
| 118 | '@commitlint/config-conventional': 17.3.0 | 118 | '@commitlint/config-conventional': 17.3.0 |
| 119 | '@iconify/json': 2.1.153 | 119 | '@iconify/json': 2.1.153 |
| 120 | - '@intlify/vite-plugin-vue-i18n': 6.0.3_vite@4.0.2+vue-i18n@9.2.2 | 120 | + '@intlify/unplugin-vue-i18n': 0.8.1_vue-i18n@9.2.2 |
| 121 | '@purge-icons/generated': 0.9.0 | 121 | '@purge-icons/generated': 0.9.0 |
| 122 | '@types/intro.js': 5.1.0 | 122 | '@types/intro.js': 5.1.0 |
| 123 | '@types/lodash-es': 4.17.6 | 123 | '@types/lodash-es': 4.17.6 |
| @@ -681,7 +681,7 @@ packages: | @@ -681,7 +681,7 @@ packages: | ||
| 681 | engines: {node: '>= 14'} | 681 | engines: {node: '>= 14'} |
| 682 | dependencies: | 682 | dependencies: |
| 683 | '@intlify/shared': 9.2.2 | 683 | '@intlify/shared': 9.2.2 |
| 684 | - source-map: registry.npmmirror.com/source-map/0.6.1 | 684 | + source-map: 0.6.1 |
| 685 | 685 | ||
| 686 | /@intlify/message-compiler/9.3.0-beta.10: | 686 | /@intlify/message-compiler/9.3.0-beta.10: |
| 687 | resolution: {integrity: sha512-RoOC6yceOykLRhN0NlbkNOBUx1el6iphx3W8NfOx3jHVNtfT1FYokx14/5sU3F1F0uxeG4sp6q+ppKvaF8o+ww==} | 687 | resolution: {integrity: sha512-RoOC6yceOykLRhN0NlbkNOBUx1el6iphx3W8NfOx3jHVNtfT1FYokx14/5sU3F1F0uxeG4sp6q+ppKvaF8o+ww==} |
| @@ -700,28 +700,33 @@ packages: | @@ -700,28 +700,33 @@ packages: | ||
| 700 | engines: {node: '>= 14'} | 700 | engines: {node: '>= 14'} |
| 701 | dev: true | 701 | dev: true |
| 702 | 702 | ||
| 703 | - /@intlify/vite-plugin-vue-i18n/6.0.3_vite@4.0.2+vue-i18n@9.2.2: | ||
| 704 | - resolution: {integrity: sha512-6SgNzPAOCR90wvt368lKzi7f/5ZEWJn22UCGvhFsP3XvKqlF3cVzojahgQ6o+LTdCkExeM6wPgd+haFf28E9VQ==} | ||
| 705 | - engines: {node: '>= 14.6'} | 703 | + /@intlify/unplugin-vue-i18n/0.8.1_vue-i18n@9.2.2: |
| 704 | + resolution: {integrity: sha512-BhigujPmP6JL1FSxmpogCaL+REozncHCVkJuUnefz4GWBu3X+pRe5O7PeJn8/g+Iml2ieQJz4ISPMmEbuGQjqQ==} | ||
| 705 | + engines: {node: '>= 14.16'} | ||
| 706 | peerDependencies: | 706 | peerDependencies: |
| 707 | petite-vue-i18n: '*' | 707 | petite-vue-i18n: '*' |
| 708 | - vite: ^2.9.0 || ^3.0.0 | ||
| 709 | vue-i18n: '*' | 708 | vue-i18n: '*' |
| 709 | + vue-i18n-bridge: '*' | ||
| 710 | peerDependenciesMeta: | 710 | peerDependenciesMeta: |
| 711 | petite-vue-i18n: | 711 | petite-vue-i18n: |
| 712 | optional: true | 712 | optional: true |
| 713 | - vite: | ||
| 714 | - optional: true | ||
| 715 | vue-i18n: | 713 | vue-i18n: |
| 716 | optional: true | 714 | optional: true |
| 715 | + vue-i18n-bridge: | ||
| 716 | + optional: true | ||
| 717 | dependencies: | 717 | dependencies: |
| 718 | '@intlify/bundle-utils': 3.4.0_vue-i18n@9.2.2 | 718 | '@intlify/bundle-utils': 3.4.0_vue-i18n@9.2.2 |
| 719 | '@intlify/shared': 9.3.0-beta.10 | 719 | '@intlify/shared': 9.3.0-beta.10 |
| 720 | '@rollup/pluginutils': 4.2.1 | 720 | '@rollup/pluginutils': 4.2.1 |
| 721 | + '@vue/compiler-sfc': 3.2.45 | ||
| 721 | debug: 4.3.4 | 722 | debug: 4.3.4 |
| 722 | fast-glob: 3.2.12 | 723 | fast-glob: 3.2.12 |
| 724 | + js-yaml: 4.1.0 | ||
| 725 | + json5: 2.2.1 | ||
| 726 | + pathe: 1.0.0 | ||
| 727 | + picocolors: 1.0.0 | ||
| 723 | source-map: 0.6.1 | 728 | source-map: 0.6.1 |
| 724 | - vite: 4.0.2_qllbiz65uv43o3e5m5uhyo643e | 729 | + unplugin: 1.0.1 |
| 725 | vue-i18n: 9.2.2_vue@3.2.45 | 730 | vue-i18n: 9.2.2_vue@3.2.45 |
| 726 | transitivePeerDependencies: | 731 | transitivePeerDependencies: |
| 727 | - supports-color | 732 | - supports-color |
| @@ -987,7 +992,7 @@ packages: | @@ -987,7 +992,7 @@ packages: | ||
| 987 | '@babel/parser': registry.npmmirror.com/@babel/parser/7.20.5 | 992 | '@babel/parser': registry.npmmirror.com/@babel/parser/7.20.5 |
| 988 | '@vue/shared': registry.npmmirror.com/@vue/shared/3.2.45 | 993 | '@vue/shared': registry.npmmirror.com/@vue/shared/3.2.45 |
| 989 | estree-walker: registry.npmmirror.com/estree-walker/2.0.2 | 994 | estree-walker: registry.npmmirror.com/estree-walker/2.0.2 |
| 990 | - source-map: registry.npmmirror.com/source-map/0.6.1 | 995 | + source-map: 0.6.1 |
| 991 | 996 | ||
| 992 | /@vue/compiler-dom/3.2.45: | 997 | /@vue/compiler-dom/3.2.45: |
| 993 | resolution: {integrity: sha512-tyYeUEuKqqZO137WrZkpwfPCdiiIeXYCcJ8L4gWz9vqaxzIQRccTSwSWZ/Axx5YR2z+LvpUbmPNXxuBU45lyRw==} | 998 | resolution: {integrity: sha512-tyYeUEuKqqZO137WrZkpwfPCdiiIeXYCcJ8L4gWz9vqaxzIQRccTSwSWZ/Axx5YR2z+LvpUbmPNXxuBU45lyRw==} |
| @@ -1914,7 +1919,7 @@ packages: | @@ -1914,7 +1919,7 @@ packages: | ||
| 1914 | engines: {node: '>=8.0.0'} | 1919 | engines: {node: '>=8.0.0'} |
| 1915 | dependencies: | 1920 | dependencies: |
| 1916 | mdn-data: 2.0.14 | 1921 | mdn-data: 2.0.14 |
| 1917 | - source-map: registry.npmmirror.com/source-map/0.6.1 | 1922 | + source-map: 0.6.1 |
| 1918 | dev: true | 1923 | dev: true |
| 1919 | 1924 | ||
| 1920 | /css-what/6.1.0: | 1925 | /css-what/6.1.0: |
| @@ -3255,6 +3260,19 @@ packages: | @@ -3255,6 +3260,19 @@ packages: | ||
| 3255 | resolution: {integrity: sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==} | 3260 | resolution: {integrity: sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==} |
| 3256 | dev: true | 3261 | dev: true |
| 3257 | 3262 | ||
| 3263 | + /json5/1.0.1: | ||
| 3264 | + resolution: {integrity: sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==} | ||
| 3265 | + hasBin: true | ||
| 3266 | + dependencies: | ||
| 3267 | + minimist: 1.2.7 | ||
| 3268 | + dev: true | ||
| 3269 | + | ||
| 3270 | + /json5/2.2.1: | ||
| 3271 | + resolution: {integrity: sha512-1hqLFMSrGHRHxav9q9gNjJ5EXznIxGVO09xQRrwplcS8qs28pZ8s8hupZAmqDwZUmVZ2Qb2jnyPOWcDH8m8dlA==} | ||
| 3272 | + engines: {node: '>=6'} | ||
| 3273 | + hasBin: true | ||
| 3274 | + dev: true | ||
| 3275 | + | ||
| 3258 | /jsonc-eslint-parser/1.4.1: | 3276 | /jsonc-eslint-parser/1.4.1: |
| 3259 | resolution: {integrity: sha512-hXBrvsR1rdjmB2kQmUjf1rEIa+TqHBGMge8pwi++C+Si1ad7EjZrJcpgwym+QGK/pqTx+K7keFAtLlVNdLRJOg==} | 3277 | resolution: {integrity: sha512-hXBrvsR1rdjmB2kQmUjf1rEIa+TqHBGMge8pwi++C+Si1ad7EjZrJcpgwym+QGK/pqTx+K7keFAtLlVNdLRJOg==} |
| 3260 | engines: {node: '>=8.10.0'} | 3278 | engines: {node: '>=8.10.0'} |
| @@ -3263,7 +3281,7 @@ packages: | @@ -3263,7 +3281,7 @@ packages: | ||
| 3263 | eslint-utils: 2.1.0 | 3281 | eslint-utils: 2.1.0 |
| 3264 | eslint-visitor-keys: 1.3.0 | 3282 | eslint-visitor-keys: 1.3.0 |
| 3265 | espree: 6.2.1 | 3283 | espree: 6.2.1 |
| 3266 | - semver: registry.npmmirror.com/semver/6.3.0 | 3284 | + semver: 6.3.0 |
| 3267 | dev: true | 3285 | dev: true |
| 3268 | 3286 | ||
| 3269 | /jsonfile/6.1.0: | 3287 | /jsonfile/6.1.0: |
| @@ -3372,7 +3390,7 @@ packages: | @@ -3372,7 +3390,7 @@ packages: | ||
| 3372 | dependencies: | 3390 | dependencies: |
| 3373 | big.js: 5.2.2 | 3391 | big.js: 5.2.2 |
| 3374 | emojis-list: 3.0.0 | 3392 | emojis-list: 3.0.0 |
| 3375 | - json5: registry.npmmirror.com/json5/1.0.1 | 3393 | + json5: 1.0.1 |
| 3376 | dev: true | 3394 | dev: true |
| 3377 | 3395 | ||
| 3378 | /locate-path/5.0.0: | 3396 | /locate-path/5.0.0: |
| @@ -3983,6 +4001,10 @@ packages: | @@ -3983,6 +4001,10 @@ packages: | ||
| 3983 | resolution: {integrity: sha512-6Y6s0vT112P3jD8dGfuS6r+lpa0qqNrLyHPOwvXMnyNTQaYiwgau2DP3aNDsR13xqtGj7rrPo+jFUATpU6/s+g==} | 4001 | resolution: {integrity: sha512-6Y6s0vT112P3jD8dGfuS6r+lpa0qqNrLyHPOwvXMnyNTQaYiwgau2DP3aNDsR13xqtGj7rrPo+jFUATpU6/s+g==} |
| 3984 | dev: true | 4002 | dev: true |
| 3985 | 4003 | ||
| 4004 | + /pathe/1.0.0: | ||
| 4005 | + resolution: {integrity: sha512-nPdMG0Pd09HuSsr7QOKUXO2Jr9eqaDiZvDwdyIhNG5SHYujkQHYKDfGQkulBxvbDHz8oHLsTgKN86LSwYzSHAg==} | ||
| 4006 | + dev: true | ||
| 4007 | + | ||
| 3986 | /picocolors/1.0.0: | 4008 | /picocolors/1.0.0: |
| 3987 | resolution: {integrity: sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==} | 4009 | resolution: {integrity: sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==} |
| 3988 | dev: true | 4010 | dev: true |
| @@ -4414,6 +4436,11 @@ packages: | @@ -4414,6 +4436,11 @@ packages: | ||
| 4414 | compute-scroll-into-view: 1.0.17 | 4436 | compute-scroll-into-view: 1.0.17 |
| 4415 | dev: false | 4437 | dev: false |
| 4416 | 4438 | ||
| 4439 | + /semver/6.3.0: | ||
| 4440 | + resolution: {integrity: sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==} | ||
| 4441 | + hasBin: true | ||
| 4442 | + dev: true | ||
| 4443 | + | ||
| 4417 | /semver/7.3.8: | 4444 | /semver/7.3.8: |
| 4418 | resolution: {integrity: sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==} | 4445 | resolution: {integrity: sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==} |
| 4419 | engines: {node: '>=10'} | 4446 | engines: {node: '>=10'} |
| @@ -4553,7 +4580,7 @@ packages: | @@ -4553,7 +4580,7 @@ packages: | ||
| 4553 | define-property: 0.2.5 | 4580 | define-property: 0.2.5 |
| 4554 | extend-shallow: 2.0.1 | 4581 | extend-shallow: 2.0.1 |
| 4555 | map-cache: 0.2.2 | 4582 | map-cache: 0.2.2 |
| 4556 | - source-map: registry.npmmirror.com/source-map/0.5.7 | 4583 | + source-map: 0.5.7 |
| 4557 | source-map-resolve: 0.5.3 | 4584 | source-map-resolve: 0.5.3 |
| 4558 | use: 3.1.1 | 4585 | use: 3.1.1 |
| 4559 | transitivePeerDependencies: | 4586 | transitivePeerDependencies: |
| @@ -4588,6 +4615,11 @@ packages: | @@ -4588,6 +4615,11 @@ packages: | ||
| 4588 | deprecated: See https://github.com/lydell/source-map-url#deprecated | 4615 | deprecated: See https://github.com/lydell/source-map-url#deprecated |
| 4589 | dev: true | 4616 | dev: true |
| 4590 | 4617 | ||
| 4618 | + /source-map/0.5.7: | ||
| 4619 | + resolution: {integrity: sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ==} | ||
| 4620 | + engines: {node: '>=0.10.0'} | ||
| 4621 | + dev: true | ||
| 4622 | + | ||
| 4591 | /source-map/0.6.1: | 4623 | /source-map/0.6.1: |
| 4592 | resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==} | 4624 | resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==} |
| 4593 | engines: {node: '>=0.10.0'} | 4625 | engines: {node: '>=0.10.0'} |
| @@ -5046,6 +5078,15 @@ packages: | @@ -5046,6 +5078,15 @@ packages: | ||
| 5046 | engines: {node: '>= 10.0.0'} | 5078 | engines: {node: '>= 10.0.0'} |
| 5047 | dev: true | 5079 | dev: true |
| 5048 | 5080 | ||
| 5081 | + /unplugin/1.0.1: | ||
| 5082 | + resolution: {integrity: sha512-aqrHaVBWW1JVKBHmGo33T5TxeL0qWzfvjWokObHA9bYmN7eNDkwOxmLjhioHl9878qDFMAaT51XNroRyuz7WxA==} | ||
| 5083 | + dependencies: | ||
| 5084 | + acorn: 8.8.1 | ||
| 5085 | + chokidar: 3.5.3 | ||
| 5086 | + webpack-sources: 3.2.3 | ||
| 5087 | + webpack-virtual-modules: 0.5.0 | ||
| 5088 | + dev: true | ||
| 5089 | + | ||
| 5049 | /unset-value/1.0.0: | 5090 | /unset-value/1.0.0: |
| 5050 | resolution: {integrity: sha512-PcA2tsuGSF9cnySLHTLSh2qrQiJ70mn+r+Glzxv2TWZblxsxCC52BDlZoPCsz7STd9pN7EZetkWZBAvk4cgZdQ==} | 5091 | resolution: {integrity: sha512-PcA2tsuGSF9cnySLHTLSh2qrQiJ70mn+r+Glzxv2TWZblxsxCC52BDlZoPCsz7STd9pN7EZetkWZBAvk4cgZdQ==} |
| 5051 | engines: {node: '>=0.10.0'} | 5092 | engines: {node: '>=0.10.0'} |
| @@ -5349,6 +5390,15 @@ packages: | @@ -5349,6 +5390,15 @@ packages: | ||
| 5349 | resolution: {integrity: sha512-D0MieGooOs8RpsrK+vnejXnvh4OOv/+lTFB35JRkJJQt+uOjPE08XpaE0QBLMTRu47B1KGT/Nq3Gbag3Orinzw==} | 5390 | resolution: {integrity: sha512-D0MieGooOs8RpsrK+vnejXnvh4OOv/+lTFB35JRkJJQt+uOjPE08XpaE0QBLMTRu47B1KGT/Nq3Gbag3Orinzw==} |
| 5350 | dev: false | 5391 | dev: false |
| 5351 | 5392 | ||
| 5393 | + /webpack-sources/3.2.3: | ||
| 5394 | + resolution: {integrity: sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w==} | ||
| 5395 | + engines: {node: '>=10.13.0'} | ||
| 5396 | + dev: true | ||
| 5397 | + | ||
| 5398 | + /webpack-virtual-modules/0.5.0: | ||
| 5399 | + resolution: {integrity: sha512-kyDivFZ7ZM0BVOUteVbDFhlRt7Ah/CSPwJdi8hBpkK7QLumUqdLtVfm/PX/hkcnrvr0i77fO5+TjZ94Pe+C9iw==} | ||
| 5400 | + dev: true | ||
| 5401 | + | ||
| 5352 | /which-module/2.0.0: | 5402 | /which-module/2.0.0: |
| 5353 | resolution: {integrity: sha512-B+enWhmw6cjfVC7kS8Pj9pCrKSc5txArRyaYGe088shv/FGWH+0Rjx/xPgtsWfsUtS27FkP697E4DDhgrgoc0Q==} | 5403 | resolution: {integrity: sha512-B+enWhmw6cjfVC7kS8Pj9pCrKSc5txArRyaYGe088shv/FGWH+0Rjx/xPgtsWfsUtS27FkP697E4DDhgrgoc0Q==} |
| 5354 | dev: false | 5404 | dev: false |
| @@ -6264,7 +6314,7 @@ packages: | @@ -6264,7 +6314,7 @@ packages: | ||
| 6264 | '@babel/parser': registry.npmmirror.com/@babel/parser/7.20.5 | 6314 | '@babel/parser': registry.npmmirror.com/@babel/parser/7.20.5 |
| 6265 | '@vue/shared': registry.npmmirror.com/@vue/shared/3.2.45 | 6315 | '@vue/shared': registry.npmmirror.com/@vue/shared/3.2.45 |
| 6266 | estree-walker: registry.npmmirror.com/estree-walker/2.0.2 | 6316 | estree-walker: registry.npmmirror.com/estree-walker/2.0.2 |
| 6267 | - source-map: registry.npmmirror.com/source-map/0.6.1 | 6317 | + source-map: 0.6.1 |
| 6268 | 6318 | ||
| 6269 | registry.npmmirror.com/@vue/compiler-dom/3.2.45: | 6319 | registry.npmmirror.com/@vue/compiler-dom/3.2.45: |
| 6270 | resolution: {integrity: sha512-tyYeUEuKqqZO137WrZkpwfPCdiiIeXYCcJ8L4gWz9vqaxzIQRccTSwSWZ/Axx5YR2z+LvpUbmPNXxuBU45lyRw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@vue/compiler-dom/-/compiler-dom-3.2.45.tgz} | 6320 | resolution: {integrity: sha512-tyYeUEuKqqZO137WrZkpwfPCdiiIeXYCcJ8L4gWz9vqaxzIQRccTSwSWZ/Axx5YR2z+LvpUbmPNXxuBU45lyRw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@vue/compiler-dom/-/compiler-dom-3.2.45.tgz} |
| @@ -6758,15 +6808,6 @@ packages: | @@ -6758,15 +6808,6 @@ packages: | ||
| 6758 | hasBin: true | 6808 | hasBin: true |
| 6759 | dev: true | 6809 | dev: true |
| 6760 | 6810 | ||
| 6761 | - registry.npmmirror.com/json5/1.0.1: | ||
| 6762 | - resolution: {integrity: sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/json5/-/json5-1.0.1.tgz} | ||
| 6763 | - name: json5 | ||
| 6764 | - version: 1.0.1 | ||
| 6765 | - hasBin: true | ||
| 6766 | - dependencies: | ||
| 6767 | - minimist: 1.2.7 | ||
| 6768 | - dev: true | ||
| 6769 | - | ||
| 6770 | registry.npmmirror.com/json5/2.2.1: | 6811 | registry.npmmirror.com/json5/2.2.1: |
| 6771 | resolution: {integrity: sha512-1hqLFMSrGHRHxav9q9gNjJ5EXznIxGVO09xQRrwplcS8qs28pZ8s8hupZAmqDwZUmVZ2Qb2jnyPOWcDH8m8dlA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/json5/-/json5-2.2.1.tgz} | 6812 | resolution: {integrity: sha512-1hqLFMSrGHRHxav9q9gNjJ5EXznIxGVO09xQRrwplcS8qs28pZ8s8hupZAmqDwZUmVZ2Qb2jnyPOWcDH8m8dlA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/json5/-/json5-2.2.1.tgz} |
| 6772 | name: json5 | 6813 | name: json5 |
| @@ -6926,7 +6967,7 @@ packages: | @@ -6926,7 +6967,7 @@ packages: | ||
| 6926 | dependencies: | 6967 | dependencies: |
| 6927 | chalk: 1.1.3 | 6968 | chalk: 1.1.3 |
| 6928 | js-base64: 2.6.4 | 6969 | js-base64: 2.6.4 |
| 6929 | - source-map: registry.npmmirror.com/source-map/0.5.7 | 6970 | + source-map: 0.5.7 |
| 6930 | supports-color: registry.npmmirror.com/supports-color/3.2.3 | 6971 | supports-color: registry.npmmirror.com/supports-color/3.2.3 |
| 6931 | dev: true | 6972 | dev: true |
| 6932 | 6973 | ||
| @@ -7012,19 +7053,6 @@ packages: | @@ -7012,19 +7053,6 @@ packages: | ||
| 7012 | version: 1.0.2 | 7053 | version: 1.0.2 |
| 7013 | engines: {node: '>=0.10.0'} | 7054 | engines: {node: '>=0.10.0'} |
| 7014 | 7055 | ||
| 7015 | - registry.npmmirror.com/source-map/0.5.7: | ||
| 7016 | - resolution: {integrity: sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/source-map/-/source-map-0.5.7.tgz} | ||
| 7017 | - name: source-map | ||
| 7018 | - version: 0.5.7 | ||
| 7019 | - engines: {node: '>=0.10.0'} | ||
| 7020 | - dev: true | ||
| 7021 | - | ||
| 7022 | - registry.npmmirror.com/source-map/0.6.1: | ||
| 7023 | - resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/source-map/-/source-map-0.6.1.tgz} | ||
| 7024 | - name: source-map | ||
| 7025 | - version: 0.6.1 | ||
| 7026 | - engines: {node: '>=0.10.0'} | ||
| 7027 | - | ||
| 7028 | registry.npmmirror.com/supports-color/2.0.0: | 7056 | registry.npmmirror.com/supports-color/2.0.0: |
| 7029 | resolution: {integrity: sha512-KKNVtd6pCYgPIKU4cp2733HWYCpplQhddZLBUryaAHou723x+FRzQ5Df824Fj+IyyuiQTRoub4SnIFfIcrp70g==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/supports-color/-/supports-color-2.0.0.tgz} | 7057 | resolution: {integrity: sha512-KKNVtd6pCYgPIKU4cp2733HWYCpplQhddZLBUryaAHou723x+FRzQ5Df824Fj+IyyuiQTRoub4SnIFfIcrp70g==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/supports-color/-/supports-color-2.0.0.tgz} |
| 7030 | name: supports-color | 7058 | name: supports-color |
| @@ -7142,7 +7170,7 @@ packages: | @@ -7142,7 +7170,7 @@ packages: | ||
| 7142 | dependencies: | 7170 | dependencies: |
| 7143 | browserslist: registry.npmmirror.com/browserslist/4.21.4 | 7171 | browserslist: registry.npmmirror.com/browserslist/4.21.4 |
| 7144 | escalade: registry.npmmirror.com/escalade/3.1.1 | 7172 | escalade: registry.npmmirror.com/escalade/3.1.1 |
| 7145 | - picocolors: registry.npmmirror.com/picocolors/1.0.0 | 7173 | + picocolors: 1.0.0 |
| 7146 | dev: true | 7174 | dev: true |
| 7147 | 7175 | ||
| 7148 | registry.npmmirror.com/vite-plugin-purge-icons/0.9.2_vite@4.0.2: | 7176 | registry.npmmirror.com/vite-plugin-purge-icons/0.9.2_vite@4.0.2: |
yudao-ui-admin-vue3/src/views/infra/apiErrorLog/index.vue
| @@ -95,9 +95,8 @@ const handleProcessClick = ( | @@ -95,9 +95,8 @@ const handleProcessClick = ( | ||
| 95 | message | 95 | message |
| 96 | .confirm('确认标记为' + type + '?', t('common.reminder')) | 96 | .confirm('确认标记为' + type + '?', t('common.reminder')) |
| 97 | .then(async () => { | 97 | .then(async () => { |
| 98 | - ApiErrorLogApi.updateApiErrorLogPageApi(row.id, processSttatus).then(() => { | ||
| 99 | - message.success(t('common.updateSuccess')) | ||
| 100 | - }) | 98 | + await ApiErrorLogApi.updateApiErrorLogPageApi(row.id, processSttatus) |
| 99 | + message.success(t('common.updateSuccess')) | ||
| 101 | }) | 100 | }) |
| 102 | .finally(async () => { | 101 | .finally(async () => { |
| 103 | // 刷新列表 | 102 | // 刷新列表 |