提交 b5a7bba8 编写于 作者: inkwalk's avatar inkwalk

fix(app): showActionSheet init i18n

上级 18731edc
...@@ -6,7 +6,7 @@ import { ...@@ -6,7 +6,7 @@ import {
defineAsyncApi, defineAsyncApi,
} from '@dcloudio/uni-api' } from '@dcloudio/uni-api'
import { extend } from '@vue/shared' import { extend } from '@vue/shared'
import { useI18n } from '@dcloudio/uni-core' import { initI18nShowActionSheetMsgsOnce, useI18n } from '@dcloudio/uni-core'
export const showActionSheet = defineAsyncApi<API_TYPE_SHOW_ACTION_SHEET>( export const showActionSheet = defineAsyncApi<API_TYPE_SHOW_ACTION_SHEET>(
API_SHOW_ACTION_SHEET, API_SHOW_ACTION_SHEET,
...@@ -20,6 +20,7 @@ export const showActionSheet = defineAsyncApi<API_TYPE_SHOW_ACTION_SHEET>( ...@@ -20,6 +20,7 @@ export const showActionSheet = defineAsyncApi<API_TYPE_SHOW_ACTION_SHEET>(
}, },
{ resolve, reject } { resolve, reject }
) => { ) => {
initI18nShowActionSheetMsgsOnce()
const { t } = useI18n() const { t } = useI18n()
const options = { const options = {
title, title,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册