请问,这种错误该到哪里查找?快被搞疯了。。。。
11:05:50.393 [Vue warn]: Unhandled error during execution of async component loader
at <AsyncComponentWrapper>
at <PageBody>
at <Page>
at <Anonymous>
at <KeepAlive>
at <RouterView>
at <Layout>
at <App>
11:05:50.401 SyntaxError: Unexpected token :
2 个回复
3***@qq.com
错误用法
export class Message {
public static info = (title: string, duration = 1500, mask = false): void => {
//统一提示方便全局修改
if (title == '') {
return;
}
uni.showToast({
title: title,
duration: duration,
mask: mask
});
}
}
正确用法:
export class Message {
public static info(title: string, duration = 1500, mask = false): void{
//统一提示方便全局修改
if (title == '') {return;}
uni.showToast({
title: title,
duration: duration,
mask: mask
});
}
}
小枫叶 - 外包接单加v:wlmk1234567 注明来意
这个应该不影响运行 最次的方法就是 不解决 然后这个目测是组件加载的时候的问题 看看哪个地方用法不规范