Skip to content

Commit

Permalink
fix: build error
Browse files Browse the repository at this point in the history
  • Loading branch information
anncwb committed Jun 7, 2021
1 parent cda0f9c commit 5212ea7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions src/locales/useLocale.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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);
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -10662,12 +10662,12 @@ vite-plugin-windicss@^1.0.1:
debug "^4.3.2"
windicss "^3.1.0"

[email protected].6:
version "2.3.6"
resolved "https://registry.npmjs.org/vite/-/vite-2.3.6.tgz#1f7cfde88a51a802d69000c7bac85d481c2e871c"
integrity sha512-fsEpNKDHgh3Sn66JH06ZnUBnIgUVUtw6ucDhlOj1CEqxIkymU25yv1/kWDPlIjyYHnalr0cN6V+zzUJ+fmWHYw==
[email protected].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"
Expand Down

0 comments on commit 5212ea7

Please sign in to comment.