Commit f5df0725 by haojie

增加dev判断

parent a86dda13
<template>
<div
class="custom-script-template"
:style="{
height: height,
}"
></div>
</template>
<script lang="ts" setup>
const props = withDefaults(
defineProps<{
height?:string;
}>(),
{
height:'175px';
},
);
const emit = defineEmits(['edit','delete']);
</script>
<style lang="less">
.custom-script-template {
width: 100%;
border-radius: 3px;
border: 1px solid #464646;
background: #1e1e1e;
}
</style>
......@@ -4,6 +4,7 @@
<Select :options="options" v-model="currentOption" @change="onSelectChange"></Select>
</div>
<div class="create-digital-person-list-box-parent">
<Loading v-show="loading"></Loading>
<div
class="create-digital-person-list-box narrow-scrollbar"
ref="personList"
......@@ -29,11 +30,12 @@
</template>
<script lang="ts" setup>
import Loading from '@/components/loading.vue';
import Grid from '@/components/Grid.vue';
import Select from '@/components/Select.vue';
import CardOne from '@/components/cardOne.vue';
import { ref, onMounted, reactive, watch, computed } from 'vue';
import { getElBounding, getWindowClient } from '@/utils/tool';
import { getElBounding, getWindowClient, isDev } from '@/utils/tool';
import { useStore } from 'vuex';
import { createLiveKeys } from '@/service/CreateLive';
import { useLiveInfoSubmit } from '@/hooks/useStoreCommit';
......@@ -53,6 +55,8 @@ const route = useRoute();
// 编辑信息
const editInfo = computed(() => store.getters['live/getEditLive']);
const loading = ref(false);
// el元素
const personList = ref();
const maxHeight = ref();
......@@ -127,7 +131,10 @@ const onSelectChange = (value: string) => {
// 从python获取视频路径
const getVideoPath = async (row: any) => {
let url = await callPyjsInWindow('getDigimonVideo', row, true);
let url = '';
if (!isDev()) {
url = await callPyjsInWindow('getDigimonVideo', row, true);
}
// 将对应的图片传给右侧工具
// store.commit('live/setLiveImage', row.cover_url);
store.commit('live/setLiveImage', url ? url : row.video_url);
......@@ -177,13 +184,16 @@ const checkPerson = () => {
const getList = async () => {
try {
loading.value = true;
let res: any = await getDigitalPeopleList();
digitalList.admin = res.adminList;
// digitalList.admin = digitalList.admin.concat(res.adminList);
digitalList.my = res.myList;
changeCurrentList();
checkPerson();
loading.value = false;
} catch (e) {
loading.value = false;
console.log(e);
}
};
......@@ -227,6 +237,7 @@ watch(
border-radius: 3px;
border: 1px solid #464646;
background: #1e1e1e;
position: relative;
.create-digital-person-list-box {
padding: 12px;
overflow-y: auto;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment