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
ad47808b
Commit
ad47808b
authored
Aug 13, 2021
by
wcmoon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 上传头像超过 5M 添加提示
parent
2e1b7199
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
UrlPrefix.js
src/config/UrlPrefix.js
+1
-2
HeadPortrait.vue
src/views/userCenter/HeadPortrait.vue
+5
-2
No files found.
src/config/UrlPrefix.js
View file @
ad47808b
...
...
@@ -188,4 +188,4 @@ const configModules = {
}
}
};
exports
.
model
=
configModules
[
process
.
env
.
VUE_APP_CURRENTMODE
]
\ No newline at end of file
exports
.
model
=
configModules
[
process
.
env
.
VUE_APP_CURRENTMODE
]
src/views/userCenter/HeadPortrait.vue
View file @
ad47808b
...
...
@@ -170,6 +170,10 @@ export default {
this
.
option
.
img
=
" "
;
const
file
=
e
.
target
.
files
[
0
];
this
.
restart
=
true
;
if
(
file
?.
size
>
1000
*
1000
*
5
)
{
this
.
$message
.
error
(
'大小不超过5M'
);
return
;
}
if
(
file
)
this
.
option
.
img
=
URL
.
createObjectURL
(
file
);
},
// 上传图片
...
...
@@ -325,4 +329,4 @@ export default {
}
}
}
</
style
>
\ No newline at end of file
</
style
>
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