Merge pull request #10107 from dataease/pr@dev-v2@refactor_mobile

refactor(仪表板): 增加手机布局提示等
This commit is contained in:
王嘉豪 2024-06-05 14:57:41 +08:00 committed by GitHub
commit 928cc18ee1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 13 additions and 2 deletions

View File

@ -21,7 +21,7 @@
<script lang="ts" setup>
import flvjs from 'flv.js'
import '@/style/custom-theme.css'
import { onMounted, reactive, toRefs, getCurrentInstance, watch, nextTick } from 'vue'
import { onMounted, reactive, toRefs, getCurrentInstance, nextTick, onBeforeUnmount } from 'vue'
import { useEmitt } from '@/hooks/web/useEmitt'
import { useI18n } from '@/hooks/web/useI18n'
const { t } = useI18n()
@ -109,6 +109,10 @@ const destroyPlayer = () => {
state.flvPlayer = null
}
}
onBeforeUnmount(() => {
destroyPlayer()
})
</script>
<style lang="less" scoped>

View File

@ -279,7 +279,11 @@ const save = () => {
:scale="80"
/>
</div>
<div class="mobile-com-mask" @click="addToMobile(item)"></div>
<div class="mobile-com-mask" @click="addToMobile(item)">
<span v-show="item.component === 'DeStreamMedia'" style="color: #909399"
>IOS可能无法显示</span
>
</div>
<div class="pc-select-to-mobile" @click="addToMobile(item)" v-if="!mobileLoading"></div>
</div>
</template>
@ -511,6 +515,9 @@ const save = () => {
left: 0;
z-index: 10;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
}
.pc-select-to-mobile {