mirror of
https://github.com/ZiuChen/ClipboardManager.git
synced 2025-12-23 10:40:04 +08:00
feat: 不再内置二进制文件 让用户自行选择监听剪贴板方式
This commit is contained in:
@@ -226,15 +226,17 @@ onMounted(() => {
|
||||
updateShowList(activeTab.value)
|
||||
|
||||
// 定期检查更新
|
||||
if (!utools.isMacOs) {
|
||||
if (!utools.isMacOs() && window.listener.listening) {
|
||||
// 非macOS系统且监听器开启时
|
||||
window.listener.on('change', () => {
|
||||
list.value = window.db.dataBase.data
|
||||
updateShowList(activeTab.value)
|
||||
})
|
||||
} else {
|
||||
// macos
|
||||
// macOS且监听器启动失败时
|
||||
let prev = {}
|
||||
setInterval(() => {
|
||||
console.log('interval')
|
||||
const now = window.db.dataBase.data[0]
|
||||
if (prev?.id === now?.id) {
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user