Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
source-trace-manage-go
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tracing
source-trace-manage-go
Commits
2270743b
Commit
2270743b
authored
Oct 27, 2021
by
zL
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:banner图上传图片限制
parent
74dbae4a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
4 deletions
+14
-4
package-lock.json
package-lock.json
+3
-3
banner.vue
src/components/editTemplate/banner.vue
+11
-1
No files found.
package-lock.json
View file @
2270743b
...
...
@@ -3034,9 +3034,9 @@
}
},
"caniuse-lite"
:
{
"version"
:
"1.0.300012
04
"
,
"resolved"
:
"https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.300012
04
.tgz"
,
"integrity"
:
"sha512-
JUdjWpcxfJ9IPamy2f5JaRDCaqJOxDzOSKtbdx4rH9VivMd1vIzoPumsJa9LoMIi4Fx2BV2KZOxWhNkBjaYivQ
=="
,
"version"
:
"1.0.300012
71
"
,
"resolved"
:
"https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.300012
71
.tgz"
,
"integrity"
:
"sha512-
BBruZFWmt3HFdVPS8kceTBIguKxu4f99n5JNp06OlPD/luoAMIaIK5ieV5YjnBLH3Nysai9sxj9rpJj4ZisXOA
=="
,
"dev"
:
true
},
"case-sensitive-paths-webpack-plugin"
:
{
...
...
src/components/editTemplate/banner.vue
View file @
2270743b
...
...
@@ -127,7 +127,7 @@ export default {
hashes
:
[],
ExistingImg
:
[],
//回显需要
t
:
null
,
typeFile
:
'file'
,
typeFile
:
"file"
,
};
},
created
()
{
...
...
@@ -331,6 +331,16 @@ export default {
this
.
previews
.
url
=
""
;
this
.
option
.
img
=
" "
;
const
file
=
e
.
target
.
files
[
0
];
if
(
!
file
)
{
return
;
}
if
(
file
.
size
>
5242880
)
{
this
.
$message
({
message
:
"上传图片大小不可超过5M"
,
type
:
"warning"
,
});
return
;
}
if
(
file
)
this
.
option
.
img
=
URL
.
createObjectURL
(
file
);
},
imgLoad
(
msg
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment