提交 5212ea79 编写于 作者: V vben

fix: build error

上级 cda0f9c1
......@@ -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);
......
......@@ -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"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册