Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
W
web-site
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张冬
web-site
Commits
c6c4bb65
Commit
c6c4bb65
authored
Nov 05, 2020
by
吴冠
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新
parent
44cfaf49
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
Upload.vue
components/Upload/Upload.vue
+2
-4
examine.vue
pages/login/examine.vue
+1
-1
No files found.
components/Upload/Upload.vue
View file @
c6c4bb65
...
...
@@ -21,7 +21,7 @@
</div>
</
template
>
<>
<
script
>
import
{
put
,
getFileNameUUID
}
from
"~/api/ali-oss"
;
export
default
{
...
...
@@ -112,7 +112,7 @@ export default {
*/
handleUpload
(
option
)
{
const
max
=
this
.
max
;
const
isLt2M =
option.file.size
/
1024
/
1024
<
script
max
;
const
isLt2M
=
option
.
file
.
size
/
1024
/
1024
<
max
;
if
(
isLt2M
)
{
// 生成的文件名称
let
objName
=
getFileNameUUID
();
...
...
@@ -130,6 +130,4 @@ export default {
},
};
</
script
>
<!-- Add "scoped" attribute to limit CSS to this component only -->
<
style
scoped
></
style
>
pages/login/examine.vue
View file @
c6c4bb65
...
...
@@ -820,7 +820,7 @@ export default {
fileList
:
[],
flag
:
true
,
//该值变化,就会触发刷新
code
:
""
,
//刷新后的验证码
active
:
1
,
active
:
0
,
checked
:
true
,
adminform
:
{
name
:
""
,
...
...
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