Commit b0a75929 by haojie

删除没有使用的变量

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