mirror of
https://github.com/ZiuChen/ClipboardManager.git
synced 2025-06-07 13:54:05 +08:00
fix: 修复开发者模式下listening为undefined的问题
This commit is contained in:
parent
8ac19335f2
commit
85291cd2cf
@ -223,7 +223,7 @@ onMounted(() => {
|
|||||||
updateShowList(activeTab.value)
|
updateShowList(activeTab.value)
|
||||||
|
|
||||||
// 定期检查更新
|
// 定期检查更新
|
||||||
if (!utools.isMacOs() && window.listener.listening) {
|
if (!utools.isMacOs() && window.listener?.listening) {
|
||||||
// 非macOS系统且监听器开启时
|
// 非macOS系统且监听器开启时
|
||||||
window.listener.on('change', () => {
|
window.listener.on('change', () => {
|
||||||
list.value = window.db.dataBase.data
|
list.value = window.db.dataBase.data
|
||||||
|
@ -183,7 +183,7 @@ const handleRestoreBtnClick = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
listenStatus.value = window.listener.listening
|
listenStatus.value = window.listener?.listening
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user