feat(Breadcrumbe): Add Breadcrumb component
style: change function to arrow function
This commit is contained in:
@@ -7,7 +7,7 @@ const plugins = [ElLoading]
|
||||
|
||||
const components = [ElScrollbar]
|
||||
|
||||
export function setupElementPlus(app: App) {
|
||||
export const setupElementPlus = (app: App) => {
|
||||
plugins.forEach((plugin) => {
|
||||
app.use(plugin)
|
||||
})
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
export function setHtmlPageLang(locale: LocaleType) {
|
||||
export const setHtmlPageLang = (locale: LocaleType) => {
|
||||
document.querySelector('html')?.setAttribute('lang', locale)
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@ import { setHtmlPageLang } from './helper'
|
||||
|
||||
export let i18n: ReturnType<typeof createI18n>
|
||||
|
||||
async function createI18nOptions(): Promise<I18nOptions> {
|
||||
const createI18nOptions = async (): Promise<I18nOptions> => {
|
||||
const localeStore = useLocaleStoreWithOut()
|
||||
const locale = localeStore.getLocale
|
||||
const localeMap = localeStore.getLocaleMap
|
||||
@@ -35,7 +35,7 @@ async function createI18nOptions(): Promise<I18nOptions> {
|
||||
}
|
||||
}
|
||||
|
||||
export async function setupI18n(app: App) {
|
||||
export const setupI18n = async (app: App) => {
|
||||
const options = await createI18nOptions()
|
||||
i18n = createI18n(options) as I18n
|
||||
app.use(i18n)
|
||||
|
||||
Reference in New Issue
Block a user