This commit is contained in:
parent
351351359f
commit
b60dce9f0b
@ -9,8 +9,8 @@ steps:
|
||||
- name: node_modules_cache
|
||||
path: /drone/src/node_modules
|
||||
commands:
|
||||
- pwd
|
||||
- node -v
|
||||
- npm -v
|
||||
- ls -al
|
||||
- npm config set registry https://registry.npmmirror.com/
|
||||
- npm i
|
||||
|
@ -150,8 +150,8 @@ class MiCanvas {
|
||||
} catch (e) {
|
||||
try {
|
||||
return this.canvas.toDataURL();
|
||||
} catch (err) {
|
||||
console.error(err.message);
|
||||
} catch (err: any) {
|
||||
console.error(err?.message);
|
||||
return '';
|
||||
}
|
||||
}
|
||||
|
@ -44,7 +44,7 @@ class MiConfig {
|
||||
public mobile = false;
|
||||
|
||||
/** 是否为触摸屏 */
|
||||
public supportsTouch = ('ontouchstart' in window) || navigator.msMaxTouchPoints;
|
||||
public supportsTouch = ('ontouchstart' in window) || navigator?.maxTouchPoints;
|
||||
|
||||
/** 通用正则 */
|
||||
public reg: {[index: string]: any} = {
|
||||
|
@ -394,7 +394,7 @@
|
||||
if (elem) elem.remove();
|
||||
};
|
||||
if (Text.data && Text.data.content) {
|
||||
return new Promise((resolve) => {
|
||||
return new Promise((resolve: any) => {
|
||||
Text.rendering(
|
||||
Text.data as MiTextConfig,
|
||||
true,
|
||||
|
Loading…
Reference in New Issue
Block a user