Commit b0a75929 by haojie

删除没有使用的变量

parent 964a42af
......@@ -6,14 +6,7 @@
"dev": "vite --open --mode development",
"build:test": "vite build --mode test",
"build": "vue-tsc --noEmit && vite build --mode release",
"build2": "vite build",
"preview": "vite preview",
"lint": "eslint --ext .vue,.js,.jsx,.ts,.tsx ./ --max-warnings 0",
"lint:fix": "eslint --ext .vue,.js,jsx,.ts,.tsx ./ --max-warnings 0 --fix",
"stylelint": "stylelint src/**/*.{html,vue,sass,less}",
"stylelint:fix": "stylelint --fix src/**/*.{html,vue,vss,sass,less}",
"site:preview": "npm run build && cp -r dist _site",
"test": "echo \"no test specified,work in process\""
"build2": "vite build"
},
"dependencies": {
"audiobuffer-to-wav": "^1.0.0",
......
......@@ -28,7 +28,6 @@
<script lang="ts" setup>
import { ref } from 'vue';
import ChangeName from '@/components/changeName.vue';
import { vLazy } from '@/utils/command';
const props = withDefaults(
defineProps<{
id: string | number;
......
......@@ -33,7 +33,7 @@ import CustomTabs from '@/components/CustomTabs';
import CustomTabPanel from '@/components/CustomTabPanel';
import Customizable from '@/components/Customizable';
import PersonSvg from '@/assets/svg/custom/person.svg';
import { onMounted, ref, reactive } from 'vue';
import { onMounted, ref, reactive, toRaw } from 'vue';
import { customizedImageSubmission } from '@/utils/api/userApi';
import { show_message } from '@/utils/tool';
import routerConfig from '@/router/tool';
......
......@@ -64,7 +64,7 @@ import { onUpdateLiveTask } from '@/service/Common';
import { getLiveTask, deleteLiveTask, liveVideoDownload } from '@/utils/api/userApi';
import { isDev, show_message } from '@/utils/tool';
import { callPyjsInWindow, injectWindow, pyDownloadVideo } from '@/utils/pyqt';
import { jumpToCreateLivePage } from '@/router/jump';
// import { jumpToCreateLivePage } from '@/router/jump';
const props = withDefaults(
defineProps<{
......@@ -182,20 +182,20 @@ const getList = async () => {
}
};
const onEdit = (item: any) => {
if (item.is_live) {
show_message('直播中的禁止编辑');
return;
}
jumpToCreateLivePage(
{
id: item.id,
status: item.status,
type: 'edit',
},
true,
);
};
// const onEdit = (item: any) => {
// if (item.is_live) {
// show_message('直播中的禁止编辑');
// return;
// }
// jumpToCreateLivePage(
// {
// id: item.id,
// status: item.status,
// type: 'edit',
// },
// true,
// );
// };
const onDelete = (item: any) => {
if (item.is_live) {
......
......@@ -81,9 +81,9 @@ import { useRouter } from 'vue-router';
import { getDigitalPeopleList } from '@/service/Common';
import Button from '@/components/Button.vue';
import { callPyjsInWindow } from '@/utils/pyqt';
import { navigationLabels } from '@/constants/token';
import { jumpPageAddNavigation, jumpToCreateLivePage } from '@/router/jump';
import { useStore } from 'vuex';
import { show_message } from '@/utils/tool';
const { addNavigation } = jumpPageAddNavigation();
const router = useRouter();
......@@ -110,31 +110,31 @@ const imgs = {
};
const toolList = [
{
label: '形象定制',
label: navigationLabels.imageCustomization,
icon: imgs.profile,
path: routerConfig.ImageCustomization.path,
name: routerConfig.ImageCustomization.name,
},
{
label: '音色定制',
label: navigationLabels.vocalCustomization,
icon: imgs.speaking,
path: routerConfig.VocalCustomization.path,
name: routerConfig.VocalCustomization.name,
},
{
label: '互动回答',
label: navigationLabels.createInteract,
icon: imgs.interaction,
path: routerConfig.createInteract.path,
name: routerConfig.createInteract.name,
},
{
label: '动作创建',
label: navigationLabels.createAction,
icon: imgs.action,
path: routerConfig.createAction.path,
name: routerConfig.createAction.name,
},
{
label: '智能换脸',
label: navigationLabels.faceTransplant,
icon: imgs.faceTransplant,
path: routerConfig.faceTransplant.path,
name: routerConfig.faceTransplant.name,
......@@ -245,7 +245,7 @@ onMounted(() => {
});
// 获取我的数字人
getList();
startTest();
// startTest();
});
</script>
......
......@@ -5,7 +5,6 @@ import store from '@/store';
import { v4 } from 'uuid';
import { writeLog } from '@/utils/pyqt';
import { getDurationOfAudioFile } from '@/utils/audio';
import CustomException from '@/utils/error';
/**
* 创建直播的版本
......
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