Skip to content

Commit 2bd21fd

Browse files
committed
优化:软件图标尺寸
1 parent 13cbd08 commit 2bd21fd

File tree

18 files changed

+20
-4
lines changed

18 files changed

+20
-4
lines changed

changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
- 优化:默认禁用 GPU 加速功能
77
- 优化:获取可用端口逻辑功能优化
88
- 优化:Windows 系统下进程输出编码乱码问题
9+
- 优化:软件图标尺寸
910

1011
## v0.0.2
1112

electron/mapi/file/index.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,9 +205,17 @@ const deletes = async (path: string, option?: { isFullPath?: boolean, }) => {
205205
}
206206
const stat = fs.statSync(fp)
207207
if (stat.isDirectory()) {
208-
fs.rmdirSync(fp, {recursive: true})
208+
try {
209+
fs.rmdirSync(fp, {recursive: true})
210+
} catch (e) {
211+
console.log('mapi.file.deletes.error', e)
212+
}
209213
} else {
210-
fs.unlinkSync(fp)
214+
try {
215+
fs.unlinkSync(fp)
216+
} catch (e) {
217+
console.log('mapi.file.deletes.error', e)
218+
}
211219
}
212220
}
213221
const rename = async (pathOld: string, pathNew: string, option?: {
-449 Bytes
Loading
-105 Bytes
Loading
-1.92 KB
Loading
-478 Bytes
Loading

electron/resources/build/logo.icns

-2.16 KB
Binary file not shown.

electron/resources/build/logo.ico

-822 Bytes
Binary file not shown.

electron/resources/build/logo.png

-1.92 KB
Loading
-8.89 KB
Loading
-822 Bytes
Binary file not shown.
-1.92 KB
Loading
Loading
Loading
Loading

src/components/Video/VideoGenCreate.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ onMounted(async () => {
7070
})
7171
7272
const doSubmit = async () => {
73-
formData.value.param = paramForm.value.getValue()
73+
formData.value.param = paramForm.value?.getValue() as any
7474
if (!formData.value.serverKey) {
7575
Dialog.tipError(t('请选择模型'))
7676
return

src/components/Video/VideoTemplateDialog.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ defineExpose({
7979
<a-table :scroll="{maxHeight:'60vh'}"
8080
:columns="columns"
8181
:pagination="false"
82+
row-key="id"
8283
:data="records">
8384
<template #video="{ record }">
8485
<div class="p-2 shadow rounded-lg bg-gray-400 inline-block">

src/components/common/VideoPlayer.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<script setup lang="ts">
22
import Player from 'xgplayer';
33
import 'xgplayer/dist/index.min.css';
4-
import {onMounted, ref} from "vue";
4+
import {onBeforeUnmount, onMounted, ref} from "vue";
55
66
const videoContainer = ref<HTMLDivElement | undefined>(undefined);
77
@@ -38,6 +38,12 @@ onMounted(() => {
3838
});
3939
})
4040
41+
onBeforeUnmount(() => {
42+
if (player) {
43+
player.destroy();
44+
}
45+
})
46+
4147
</script>
4248

4349
<template>

0 commit comments

Comments
 (0)