mirror of
https://github.com/Kuingsmile/PicList.git
synced 2025-02-08 21:38:13 -05:00
✨ Feature: add uploading image from URL support
This commit is contained in:
parent
23ba2338c6
commit
a28c67848d
@ -42,7 +42,7 @@
|
|||||||
"keycode": "^2.2.0",
|
"keycode": "^2.2.0",
|
||||||
"lodash-id": "^0.14.0",
|
"lodash-id": "^0.14.0",
|
||||||
"lowdb": "^1.0.0",
|
"lowdb": "^1.0.0",
|
||||||
"picgo": "^1.4.4",
|
"picgo": "^1.4.5",
|
||||||
"vue": "^2.6.10",
|
"vue": "^2.6.10",
|
||||||
"vue-gallery": "^2.0.1",
|
"vue-gallery": "^2.0.1",
|
||||||
"vue-lazyload": "^1.2.6",
|
"vue-lazyload": "^1.2.6",
|
||||||
|
@ -155,10 +155,10 @@ export default class extends Vue {
|
|||||||
}
|
}
|
||||||
handleInputBoxValue (val: string) {
|
handleInputBoxValue (val: string) {
|
||||||
if (val === '') return false
|
if (val === '') return false
|
||||||
if (val.includes('http://') || val.includes('https://')) {
|
if (val.startsWith('http://') || val.startsWith('https://')) {
|
||||||
ipcRenderer.send('uploadChoosedFiles', {
|
ipcRenderer.send('uploadChoosedFiles', [{
|
||||||
path: val
|
path: val
|
||||||
})
|
}])
|
||||||
} else {
|
} else {
|
||||||
this.$message.error('请输入合法的URL')
|
this.$message.error('请输入合法的URL')
|
||||||
}
|
}
|
||||||
|
@ -8292,10 +8292,10 @@ performance-now@^2.1.0:
|
|||||||
resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-2.1.0.tgz#6309f4e0e5fa913ec1c69307ae364b4b377c9e7b"
|
resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-2.1.0.tgz#6309f4e0e5fa913ec1c69307ae364b4b377c9e7b"
|
||||||
integrity sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=
|
integrity sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=
|
||||||
|
|
||||||
picgo@^1.4.4:
|
picgo@^1.4.5:
|
||||||
version "1.4.4"
|
version "1.4.5"
|
||||||
resolved "https://registry.yarnpkg.com/picgo/-/picgo-1.4.4.tgz#4fd2d51793a7f90a144a816c60035ed1f2f76bf2"
|
resolved "https://registry.yarnpkg.com/picgo/-/picgo-1.4.5.tgz#3579aea9017a68c4b1e80e7af9060eb70ab98a9a"
|
||||||
integrity sha512-0rieY+qlyfLVhPdwXZSqwitNCifgWJohDnnfHE92tPmP738r35Ab0wfa7eh4LRuI8Gx376FTNdlTIUQ4mHEsxQ==
|
integrity sha512-uef5tkOsswj6XJX2kYlUkuIPhaUS4PNSCMZ3IYgSCZvvxC4e1o8Qro4PIYlMAIEDPqP30OrKNab/wmaJxizv+g==
|
||||||
dependencies:
|
dependencies:
|
||||||
chalk "^2.4.1"
|
chalk "^2.4.1"
|
||||||
commander "^2.17.0"
|
commander "^2.17.0"
|
||||||
|
Loading…
Reference in New Issue
Block a user