mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-05-30 20:50:52 +08:00
✨ Feature: add uploading image from URL support
This commit is contained in:
@@ -155,10 +155,10 @@ export default class extends Vue {
|
||||
}
|
||||
handleInputBoxValue (val: string) {
|
||||
if (val === '') return false
|
||||
if (val.includes('http://') || val.includes('https://')) {
|
||||
ipcRenderer.send('uploadChoosedFiles', {
|
||||
if (val.startsWith('http://') || val.startsWith('https://')) {
|
||||
ipcRenderer.send('uploadChoosedFiles', [{
|
||||
path: val
|
||||
})
|
||||
}])
|
||||
} else {
|
||||
this.$message.error('请输入合法的URL')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user