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 78c25b9b
authored
Aug 07, 2023
by
xinla
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
上传问题
1 parent
d462cc50
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
vue3-lw-pc/src/components/Upload.vue
vue3-lw-pc/src/components/Upload.vue
View file @
78c25b9
...
@@ -420,7 +420,7 @@ export default {
...
@@ -420,7 +420,7 @@ export default {
tip
=
formatDefault
[
this
.
type
].
tip
tip
=
formatDefault
[
this
.
type
].
tip
}
}
const
reg
=
new
RegExp
(
`\\.(
${
this
.
format
.
join
(
'|'
)}
)$`
,
'ig'
)
// /\.xlsx|.$/
const
reg
=
new
RegExp
(
`\\.(
${
format
.
join
(
'|'
)}
)$`
,
'ig'
)
// /\.xlsx|.$/
isFormat
=
format
[
0
]
===
'*'
||
reg
.
test
(
file
.
name
)
isFormat
=
format
[
0
]
===
'*'
||
reg
.
test
(
file
.
name
)
if
(
!
isFormat
)
{
if
(
!
isFormat
)
{
this
.
$message
.
error
(
'文件格式错误,仅支持 '
+
(
tip
||
format
.
join
(
','
))
+
' 格式!'
)
this
.
$message
.
error
(
'文件格式错误,仅支持 '
+
(
tip
||
format
.
join
(
','
))
+
' 格式!'
)
...
...
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