fix: config.json 添加showVideo 控制显示背景视频
This commit is contained in:
@@ -33,6 +33,7 @@ export const sidebar = {
|
||||
{text: 'chartTimeSeries', link: '/chartTimeSeries'},
|
||||
{text: 'chartAutotopology', link: '/chartAutotopology'},
|
||||
{text: 'chartDiagram', link: '/chartDiagram'},
|
||||
{text: 'chartLegend', link: '/chartLegend'},
|
||||
]
|
||||
}
|
||||
]
|
||||
|
||||
@@ -7,11 +7,11 @@ const props = withDefaults(defineProps<{
|
||||
/**
|
||||
* chart数据
|
||||
*/
|
||||
chartData?: [],
|
||||
chartData?: Array,
|
||||
/**
|
||||
* legend 数据
|
||||
*/
|
||||
legends: [],
|
||||
legends: Array,
|
||||
/**
|
||||
* 是否全屏
|
||||
*/
|
||||
@@ -19,7 +19,7 @@ const props = withDefaults(defineProps<{
|
||||
/**
|
||||
* 所有根据图表处理过后的数据
|
||||
*/
|
||||
series: []
|
||||
series: Array
|
||||
|
||||
}>(), {
|
||||
|
||||
|
||||
@@ -3,4 +3,5 @@ map:
|
||||
path: /chartLegend
|
||||
---
|
||||
|
||||
|
||||
<API src="./chartLegend.vue" lang="zh"></API>
|
||||
|
||||
@@ -1,9 +1,12 @@
|
||||
<template>
|
||||
<div class="login" id="login-bgimg" style="background: none">
|
||||
<div class="video-box">
|
||||
<div class="login"
|
||||
id="login-bgimg"
|
||||
:style="`${nzDefaultConfig.showVideo ? 'background: none': ''}`"
|
||||
>
|
||||
<div class="video-box" v-if="nzDefaultConfig.showVideo">
|
||||
<video class="video-background" preload="auto" loop="" playsinline="" autoplay="" src="/static/video/netsec-bg-video.mp4" tabindex="-1" muted="muted"></video>
|
||||
</div>
|
||||
<!-- <div class="model"></div>-->
|
||||
<div class="model" v-if="!nzDefaultConfig.showVideo"></div>
|
||||
<div class="login-main">
|
||||
<div class="logo"><img :src="imageUrl"></div>
|
||||
<div class='login-box'>
|
||||
|
||||
@@ -1 +1 @@
|
||||
{"baseUrl":"http://192.168.44.22/", "version": "23.06"}
|
||||
{"baseUrl":"http://192.168.44.22/", "version": "23.06" , "showVideo": 1}
|
||||
|
||||
Reference in New Issue
Block a user