提交 96faab95 编写于 作者: D DCloud_LXH

fix(app): uni.previewImage i18n question/135557

上级 eff202f9
...@@ -10,7 +10,7 @@ import { ...@@ -10,7 +10,7 @@ import {
import { isPlainObject } from '@vue/shared' import { isPlainObject } from '@vue/shared'
import { initI18nChooseImageMsgsOnce, useI18n } from '@dcloudio/uni-core' import { initI18nPreviewImageMsgsOnce, useI18n } from '@dcloudio/uni-core'
import { getRealPath } from '../../../platform/getRealPath' import { getRealPath } from '../../../platform/getRealPath'
...@@ -20,7 +20,7 @@ export const previewImage = <API_TYPE_PREVIEW_IMAGE>defineAsyncApi( ...@@ -20,7 +20,7 @@ export const previewImage = <API_TYPE_PREVIEW_IMAGE>defineAsyncApi(
{ current = 0, indicator = 'number', loop = false, urls, longPressActions }, { current = 0, indicator = 'number', loop = false, urls, longPressActions },
{ resolve, reject } { resolve, reject }
) => { ) => {
initI18nChooseImageMsgsOnce() initI18nPreviewImageMsgsOnce()
const { t } = useI18n() const { t } = useI18n()
urls = urls.map((url) => getRealPath(url)) urls = urls.map((url) => getRealPath(url))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册