Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 556a23ed
authored
Jan 04, 2022
by
xinla
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
--no commit message
1 parent
769453ca
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
linkwe-ui/src/components/Upload.vue
linkwe-ui/src/components/Upload.vue
View file @
556a23e
...
@@ -89,6 +89,7 @@ export default {
...
@@ -89,6 +89,7 @@ export default {
}
}
if
(
this
.
maxImgPx
)
{
if
(
this
.
maxImgPx
)
{
try
{
await
new
Promise
((
resolve
)
=>
{
await
new
Promise
((
resolve
)
=>
{
let
width
,
height
let
width
,
height
let
image
=
new
Image
()
let
image
=
new
Image
()
...
@@ -107,7 +108,7 @@ export default {
...
@@ -107,7 +108,7 @@ export default {
resolve
()
resolve
()
}
}
if
(
window
.
URL
)
{
if
(
window
.
URL
)
{
url
=
window
.
URL
.
createObjectURL
(
file
)
let
url
=
window
.
URL
.
createObjectURL
(
file
)
image
.
src
=
url
image
.
src
=
url
}
else
if
(
window
.
FileReader
)
{
}
else
if
(
window
.
FileReader
)
{
let
reader
=
new
FileReader
()
let
reader
=
new
FileReader
()
...
@@ -118,6 +119,9 @@ export default {
...
@@ -118,6 +119,9 @@ export default {
reader
.
readAsDataURL
(
file
)
reader
.
readAsDataURL
(
file
)
}
}
})
})
}
catch
(
e
)
{
console
.
error
(
e
)
}
}
}
}
else
if
(
this
.
type
===
'1'
)
{
}
else
if
(
this
.
type
===
'1'
)
{
// 语音
// 语音
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment