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