Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
csbr-daop
/
fe-data-trusted-space
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
a4dc63c9
authored
2025-01-16 13:22:20 +0800
by
lxs
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
文件名回显
1 parent
6e88fef4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
src/api/modules/common.ts
src/api/modules/common.ts
View file @
a4dc63c
...
...
@@ -82,7 +82,7 @@ export const onUploadFilePreview = async (params) => {
export
const
setFileName
=
(
name
)
=>
{
if
(
name
&&
name
.
indexOf
(
'_'
)
>
-
1
){
const
s
=
name
.
indexOf
(
"_"
);
const
e
=
name
.
i
ndexOf
(
"."
);
const
e
=
name
.
lastI
ndexOf
(
"."
);
const
newName
=
name
.
slice
(
0
,
s
)
+
name
.
slice
(
e
);
return
newName
}
else
{
...
...
Write
Preview
Styling with
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