提交 f1174f1c 编写于 作者: D DCloud_LXH

chore: ts-ignore

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