feat: 不再内置二进制文件 让用户自行选择监听剪贴板方式

This commit is contained in:
ZiuChen
2022-09-24 17:01:12 +08:00
parent a05e9c4742
commit 73be7b47df
8 changed files with 91 additions and 112 deletions

View File

@@ -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 {