Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
live-management-web
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
haojie
live-management-web
Commits
07427bcf
Commit
07427bcf
authored
Sep 04, 2023
by
haojie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
文件名带.导致无法上传的问题
parent
51cbcdb4
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
11 additions
and
16 deletions
+11
-16
src/components/cardOne.vue
+2
-4
src/components/cardTwo.vue
+1
-2
src/components/upload/index.tsx
+2
-2
src/pages/createAction/components/choseDigitalPeople/index.less
+0
-1
src/pages/createLive/components/ChoseDigitalPerson.vue
+2
-3
src/pages/home/index.vue
+1
-3
src/utils/tool.ts
+3
-1
No files found.
src/components/cardOne.vue
View file @
07427bcf
...
...
@@ -93,7 +93,6 @@ watch(
}
.custom-card-box
{
width
:
170px
;
height
:
224px
;
background
:
#1e1e1e
;
border-radius
:
8px
;
box-shadow
:
0px
0px
8px
0px
rgba
(
0
,
0
,
0
,
0.1
);
...
...
@@ -104,13 +103,12 @@ watch(
color
:
white
;
.img-box
{
position
:
relative
;
height
:
259px
;
img
{
width
:
100%
;
height
:
1
74px
;
height
:
1
00%
;
border-top-left-radius
:
8px
;
border-top-right-radius
:
8px
;
//
object-fit
:
contain
;
//
object-fit
:
cover
;
}
}
.hover
{
...
...
src/components/cardTwo.vue
View file @
07427bcf
...
...
@@ -87,7 +87,6 @@ const nameChange = (value: string) => {
}
.custom-card-two-box
{
width
:
200px
;
height
:
310px
;
background
:
#1e1e1e
;
border-radius
:
8px
;
transition
:
all
0.2s
;
...
...
@@ -98,7 +97,7 @@ const nameChange = (value: string) => {
flex-direction
:
column
;
.custom-card-two-image
{
position
:
relative
;
height
:
236
px
;
height
:
355
px
;
.hover
{
position
:
absolute
;
top
:
0
;
...
...
src/components/upload/index.tsx
View file @
07427bcf
...
...
@@ -11,7 +11,7 @@ import {
}
from
'tdesign-vue-next'
;
import
{
getUserCookie
}
from
'@/utils/api/userApi'
;
import
request
from
'@/utils/otherRequest'
;
import
{
isDev
,
show_message
}
from
'@/utils/tool'
;
import
{
getFileSuffix
,
isDev
,
show_message
}
from
'@/utils/tool'
;
import
{
v4
}
from
'uuid'
;
import
Button
from
'../Button.vue'
;
...
...
@@ -128,7 +128,7 @@ export default defineComponent({
return
false
;
}
if
(
props
.
accept
)
{
let
fileName
=
file
.
name
.
split
(
'.'
)[
1
]
;
let
fileName
=
getFileSuffix
(
file
)
;
fileName
=
fileName
.
toLowerCase
();
let
proAccept
=
props
.
accept
.
toLowerCase
();
if
(
proAccept
.
indexOf
(
fileName
)
==
-
1
)
{
...
...
src/pages/createAction/components/choseDigitalPeople/index.less
View file @
07427bcf
...
...
@@ -40,7 +40,6 @@
}
.more-choices {
width: 170px;
height: 224px;
background: #1e1e1e;
border-radius: 8px;
transition: all 0.2s;
...
...
src/pages/createLive/components/ChoseDigitalPerson.vue
View file @
07427bcf
...
...
@@ -286,10 +286,9 @@ watch(
.custom-card-box
{
background
:
white
;
width
:
150px
;
height
:
200px
;
color
:
black
;
img
{
height
:
150
px
;
.img-box
{
height
:
224
px
;
}
}
.create-digital-person-grid
{
...
...
src/pages/home/index.vue
View file @
07427bcf
...
...
@@ -295,9 +295,8 @@ onMounted(() => {
.digital-people-list-box
{
margin-top
:
12px
;
width
:
100%
;
height
:
348px
;
background
:
#303030
;
padding
:
3
3px
30px
0px
3
0px
;
padding
:
30px
;
border-radius
:
6px
;
display
:
flex
;
flex-direction
:
column
;
...
...
@@ -322,7 +321,6 @@ onMounted(() => {
}
.more-choices
{
width
:
170px
;
height
:
224px
;
background
:
#1e1e1e
;
border-radius
:
8px
;
transition
:
all
0.2s
;
...
...
src/utils/tool.ts
View file @
07427bcf
...
...
@@ -280,8 +280,10 @@ export const alyOssUpload = (
// 获取文件后缀
export
const
getFileSuffix
=
(
file
:
any
)
=>
{
// 获取最后一个点的位置
if
(
file
.
name
&&
file
.
name
.
indexOf
(
'.'
)
!==
-
1
)
{
return
file
.
name
.
split
(
'.'
)[
1
];
let
list
=
file
.
name
.
split
(
'.'
);
return
list
[
list
.
length
-
1
];
}
else
{
return
file
.
type
.
split
(
'/'
)[
1
];
}
...
...
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