mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-02-03 02:54:40 +08:00
fix: build error
This commit is contained in:
parent
cda0f9c10a
commit
5212ea79b4
@ -111,7 +111,7 @@
|
||||
"stylelint-order": "^4.1.0",
|
||||
"ts-node": "^10.0.0",
|
||||
"typescript": "4.3.2",
|
||||
"vite": "2.3.6",
|
||||
"vite": "2.3.3",
|
||||
"vite-plugin-compression": "^0.2.5",
|
||||
"vite-plugin-html": "^2.0.7",
|
||||
"vite-plugin-imagemin": "^0.3.2",
|
||||
|
@ -3,7 +3,7 @@
|
||||
*/
|
||||
import type { LocaleType } from '/#/config';
|
||||
|
||||
import { updateLocale } from 'moment';
|
||||
import moment from 'moment';
|
||||
|
||||
import { i18n } from './setupI18n';
|
||||
import { useLocaleStoreWithOut } from '/@/store/modules/locale';
|
||||
@ -56,7 +56,7 @@ export function useLocale() {
|
||||
const { message, momentLocale, momentLocaleName } = langModule;
|
||||
|
||||
globalI18n.setLocaleMessage(locale, message);
|
||||
updateLocale(momentLocaleName, momentLocale);
|
||||
moment.updateLocale(momentLocaleName, momentLocale);
|
||||
loadLocalePool.push(locale);
|
||||
|
||||
setI18nLanguage(locale);
|
||||
|
10
yarn.lock
10
yarn.lock
@ -10662,12 +10662,12 @@ vite-plugin-windicss@^1.0.1:
|
||||
debug "^4.3.2"
|
||||
windicss "^3.1.0"
|
||||
|
||||
vite@2.3.6:
|
||||
version "2.3.6"
|
||||
resolved "https://registry.npmjs.org/vite/-/vite-2.3.6.tgz#1f7cfde88a51a802d69000c7bac85d481c2e871c"
|
||||
integrity sha512-fsEpNKDHgh3Sn66JH06ZnUBnIgUVUtw6ucDhlOj1CEqxIkymU25yv1/kWDPlIjyYHnalr0cN6V+zzUJ+fmWHYw==
|
||||
vite@2.3.3:
|
||||
version "2.3.3"
|
||||
resolved "https://registry.yarnpkg.com/vite/-/vite-2.3.3.tgz#7e88a71abd03985c647789938d784cce0ee3b0fd"
|
||||
integrity sha512-eO1iwRbn3/BfkNVMNJDeANAFCZ5NobYOFPu7IqfY7DcI7I9nFGjJIZid0EViTmLDGwwSUPmRAq3cRBbO3+DsMA==
|
||||
dependencies:
|
||||
esbuild "^0.12.5"
|
||||
esbuild "^0.11.23"
|
||||
postcss "^8.2.10"
|
||||
resolve "^1.19.0"
|
||||
rollup "^2.38.5"
|
||||
|
Loading…
Reference in New Issue
Block a user