提交 7a9714e3 编写于 作者: 雪洛's avatar 雪洛

fix: 修复部分类型告警

上级 eff0c82f
......@@ -22,9 +22,9 @@
}
});
} catch (e) {
console.error(e.message);
console.error((e as Error).message);
uni.showModal({
content: e.message,
content: (e as Error).message,
showCancel: false
});
}
......
......@@ -119,7 +119,7 @@
})
let url = 'https://demo.dcloud.net.cn/payment/wxpayv3.__UNI__uniappx/?total=0.01'
const res = uni.getAppBaseInfo();
let packageName:string | null
let packageName:string | null = ''
// #ifdef APP-ANDROID
packageName = res.packageName
......
......@@ -21,7 +21,7 @@
onReady() {
this.drawing = this.$refs['drawing'] as HTMLElement;
this.canvasElement = document.createElement('canvas') as HTMLCanvasElement;
this.canvasElement.className = 'canvas'
this.canvasElement!.className = 'canvas'
this.drawing!.appendChild(this.canvasElement)
this.canvasContext = this.canvasElement!.getContext('2d')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册