提交 1ae5bce3 编写于 作者: Q qiang

fix: chooseImage path

上级 77445489
...@@ -55,7 +55,7 @@ export function chooseImage ({ ...@@ -55,7 +55,7 @@ export function chooseImage ({
for (let i = 0; i < fileCount; i++) { for (let i = 0; i < fileCount; i++) {
const file = event.target.files[i] const file = event.target.files[i]
let filePath let filePath
Object.defineProperty(file, 'filePath', { Object.defineProperty(file, 'path', {
get () { get () {
filePath = filePath || fileToUrl(file) filePath = filePath || fileToUrl(file)
return filePath return filePath
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册