mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-09-05 15:37:21 +08:00
Added: clipboard upload menu for mini page
This commit is contained in:
+6
-1
@@ -323,7 +323,12 @@ const uploadClipboardFiles = async () => {
|
|||||||
imgUrl
|
imgUrl
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const win = settingWindow || window
|
let win
|
||||||
|
if (miniWindow.isVisible) {
|
||||||
|
win = miniWindow
|
||||||
|
} else {
|
||||||
|
win = settingWindow || window
|
||||||
|
}
|
||||||
img = await uploader(uploadImg, 'imgFromClipboard', win.webContents)
|
img = await uploader(uploadImg, 'imgFromClipboard', win.webContents)
|
||||||
if (img !== false) {
|
if (img !== false) {
|
||||||
if (img.length > 0) {
|
if (img.length > 0) {
|
||||||
|
|||||||
@@ -123,6 +123,12 @@ export default {
|
|||||||
_this.$electron.ipcRenderer.send('openSettingWindow')
|
_this.$electron.ipcRenderer.send('openSettingWindow')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
label: '剪贴板图片上传',
|
||||||
|
click () {
|
||||||
|
_this.$electron.ipcRenderer.send('uploadClipboardFilesFromUploadPage')
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
role: 'quit',
|
role: 'quit',
|
||||||
label: '退出'
|
label: '退出'
|
||||||
|
|||||||
Reference in New Issue
Block a user