提交 f1174f1c 编写于 作者: D DCloud_LXH

chore: ts-ignore

上级 1d7e3b81
......@@ -29,20 +29,19 @@ export const scanCode = defineAsyncApi<API_TYPE_SCAN_CODE>(
},
}),
style: {
// @ts-ignore
// @ts-expect-error
animationType: options.animationType || 'pop-in',
titleNView: {
autoBackButton: true,
// @ts-ignore
type: 'float',
// @ts-ignore
// @ts-expect-error
titleText: options.titleText || t('uni.scanCode.title'),
titleColor: '#ffffff',
backgroundColor: 'rgba(0,0,0,0)',
buttons: !options.onlyFromCamera
? [
{
// @ts-ignore
// @ts-expect-error
text: options.albumText || t('uni.scanCode.album'),
fontSize: '17px',
width: '60px',
......
......@@ -20,8 +20,7 @@ export const chooseLocation = <API_TYPE_CHOOSE_LOCATION>defineAsyncApi(
style: {
// @ts-ignore
animationType: options.animationType || 'slide-in-bottom',
// @ts-ignore
titleNView: false,
titleNView: undefined,
popGesture: 'close',
scrollIndicator: 'none',
},
......
......@@ -103,6 +103,7 @@ export const getUserInfo = defineAsyncApi<API_TYPE_GET_USER_INFO>(
nickname?: PlusOauthUserInfo['nickname']
gender?: PlusOauthUserInfo['sex']
headimgurl?: PlusOauthUserInfo['headimgurl']
unionId?: string
} = { nickName: '' }
if (provider === 'weixin') {
const wechatUserInfo = loginService.userInfo
......@@ -115,7 +116,6 @@ export const getUserInfo = defineAsyncApi<API_TYPE_GET_USER_INFO>(
province: wechatUserInfo.province,
country: wechatUserInfo.country,
avatarUrl: wechatUserInfo.headimgurl,
// @ts-ignore
unionId: wechatUserInfo.unionid,
}
} else if (provider === 'apple') {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册