Commit 80ad5903f263af761cc582d228f1c0a15e45e296
Merge branch 'fix/DEFECT-1355' into 'main_dev'
fix: 修复平台定制背景图未撑满屏幕 See merge request yunteng/thingskit-front!664
Showing
2 changed files
with
3 additions
and
2 deletions
| ... | ... | @@ -21,7 +21,7 @@ export const getVideoTypeByUrl = (url: string) => { |
| 21 | 21 | const type = VideoPlayerType[ext]; |
| 22 | 22 | return type ? type : VideoPlayerType.webm; |
| 23 | 23 | } catch (error) { |
| 24 | - console.error(error); | |
| 24 | + console.error(`url: '${url}' is invalid!`); | |
| 25 | 25 | return VideoPlayerType.webm; |
| 26 | 26 | } |
| 27 | 27 | }; | ... | ... |
| ... | ... | @@ -68,16 +68,17 @@ export const usePlatform = async () => { |
| 68 | 68 | .vben-login::before{ |
| 69 | 69 | background-image:url("${background || lightThemeBgImage}"); |
| 70 | 70 | position:absolute; |
| 71 | + background-size: ${background ? '100%' : 'auto'} 100% !important; | |
| 71 | 72 | margin-left: ${background ? 0 : '-48%'} !important; |
| 72 | 73 | } |
| 73 | 74 | html[data-theme='dark'] .vben-login::before{ |
| 74 | 75 | background-image:url("${background || darkThemeBgImage}"); |
| 75 | 76 | position:absolute; |
| 77 | + background-size: ${background ? '100%' : 'auto'} 100% !important; | |
| 76 | 78 | margin-left: ${background ? 0 : '-48%'} !important; |
| 77 | 79 | } |
| 78 | 80 | `; |
| 79 | 81 | |
| 80 | - console.log(styleEl); | |
| 81 | 82 | document.head.appendChild(styleEl); |
| 82 | 83 | }; |
| 83 | 84 | ... | ... |