提交 e3344689 编写于 作者: D DCloud_LXH

chore: getAppBaseInfo

上级 6afe28ad
import { defineAsyncApi, defineSyncApi } from '@dcloudio/uni-api'
import { defineAsyncApi, defineSyncApi, getLocale } from '@dcloudio/uni-api'
import deviceId from '../../../helpers/uuid'
import { extend } from '@vue/shared'
import { getWindowInfo } from './getWindowInfo'
......@@ -52,6 +52,7 @@ export const getAppBaseInfo = defineSyncApi<typeof uni.getAppBaseInfo>(
hostName,
hostVersion,
hostLanguage,
osLanguage,
hostTheme,
appId,
appName,
......@@ -67,9 +68,9 @@ export const getAppBaseInfo = defineSyncApi<typeof uni.getAppBaseInfo>(
appName,
appVersion,
appVersionCode,
appLanguage: uni.getLocale(),
appLanguage: getLocale ? getLocale() : osLanguage,
version: plus.runtime.innerVersion!,
language: hostLanguage,
language: osLanguage,
theme: '',
hostPackageName,
hostName,
......
import { defineSyncApi } from '@dcloudio/uni-api'
import { defineSyncApi, getLocale } from '@dcloudio/uni-api'
import deviceId from '../../../helpers/uuid'
import { getBrowserInfo } from '../base/getBrowserInfo'
import { getWindowInfo } from './getWindowInfo'
......@@ -70,7 +70,7 @@ export const getAppBaseInfo = defineSyncApi<typeof uni.getAppBaseInfo>(
appName: __uniConfig.appName,
appVersion: __uniConfig.appVersion,
appVersionCode: __uniConfig.appVersionCode,
appLanguage: uni.getLocale(),
appLanguage: getLocale ? getLocale() : language,
version: __uniConfig.appVersion,
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册