.
This commit is contained in:
parent
6ff81b5a45
commit
f05056ef6e
11
App.vue
11
App.vue
@ -82,6 +82,15 @@
|
|||||||
})
|
})
|
||||||
// #endif
|
// #endif
|
||||||
},
|
},
|
||||||
|
async loadAndCallModule() {
|
||||||
|
try {
|
||||||
|
const requestPermissions = await import("@/utils/requestPermissions.js");
|
||||||
|
console.error("requestPermissions:", requestPermissions)
|
||||||
|
requestPermissions.sayHello();
|
||||||
|
} catch (error) {
|
||||||
|
console.error('Failed to load module:', error);
|
||||||
|
}
|
||||||
|
},
|
||||||
// 添加一个消息回调
|
// 添加一个消息回调
|
||||||
on(type, key, callBack) {
|
on(type, key, callBack) {
|
||||||
switch (type) {
|
switch (type) {
|
||||||
@ -181,6 +190,8 @@
|
|||||||
this.dc.dataObj[key] = res.data[key];
|
this.dc.dataObj[key] = res.data[key];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}).catch(() => {
|
||||||
|
this.dc.runningTimer = false;
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
case dcEventType.send: // 命令控制设备
|
case dcEventType.send: // 命令控制设备
|
||||||
|
Loading…
Reference in New Issue
Block a user