Skip to content

vue项目引入qscan报错 #2

@zhenghonglq

Description

@zhenghonglq

在vue中通过npm install qscan --save-dev后,
在页面中通过如下方式引入qscan
const QScan = require('qscan');
const scan = new QScan({
// model 配置
modelOpts: {
'wx-default': { // model 名称
udid: 'HICMHMZTTW8DFI59', // 安卓设备 id,通过 adb service 命令查看
port: '4723', // 端口号
opts: {
user: 'xxx', // 微信用户名
pass: 'xxx' // 微信密码
}
}
}
});
运行后报错:
You may need an appropriate loader to handle this file type.
| this.loadModel({
| model,
| ...opts
| });
| });

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions