Skip to content

Commit 13cbd08

Browse files
committed
优化:暂时禁用 zip 模型导入,在 windows 系统下管理效率问题
1 parent b95c234 commit 13cbd08

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/components/Server/ServerImportLocalDialog.vue renamed to src/components/Server/ServerAddDialog.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -230,8 +230,8 @@ const emit = defineEmits({
230230
<div>
231231
<div class="">
232232
<div v-if="!modelInfo.name">
233-
<div class="flex">
234-
<div class="w-1/2 px-3">
233+
<div class="">
234+
<div v-if="0" class="w-1/2 px-3">
235235
<div>
236236
<img class="w-32 h-32 object-contain m-auto"
237237
src="./../../assets/image/server-file.svg"/>
@@ -250,7 +250,7 @@ const emit = defineEmits({
250250
{{ $t('模型一键启动压缩包,包含模型服务的配置文件和模型服务程序文件。')}}
251251
</div>
252252
</div>
253-
<div class="w-1/2 px-3">
253+
<div class="px-3">
254254
<div>
255255
<img class="w-32 h-32 object-contain m-auto"
256256
src="./../../assets/image/server-folder.svg"/>

src/pages/Server.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
33
import ServerStatus from "../components/Server/ServerStatus.vue";
44
import {EnumServerType} from "../types/Server";
5-
import ServerImportLocalDialog from "../components/Server/ServerImportLocalDialog.vue";
5+
import ServerAddDialog from "../components/Server/ServerAddDialog.vue";
66
import {ref} from "vue";
77
import {useServerStore} from "../store/modules/server";
88
import {AppConfig} from "../config";
@@ -15,7 +15,7 @@ import ServerActionInfo from "../components/Server/ServerActionInfo.vue";
1515
import ServerActionSetting from "../components/Server/ServerActionSetting.vue";
1616
import {functionToLabels} from "../lib/aigcpanel";
1717
18-
const importLocalDialog = ref<InstanceType<typeof ServerImportLocalDialog> | null>(null)
18+
const addDialog = ref<InstanceType<typeof ServerAddDialog> | null>(null)
1919
const serverStore = useServerStore()
2020
const helpShow = ref(false)
2121
@@ -49,7 +49,7 @@ const typeName = (type: string) => {
4949
<div class="flex items-center">
5050
<a-button v-if="serverStore.records.length>0"
5151
class="ml-1"
52-
@click="importLocalDialog?.show()">
52+
@click="addDialog?.show()">
5353
<template #icon>
5454
<icon-plus/>
5555
</template>
@@ -73,7 +73,7 @@ const typeName = (type: string) => {
7373
</div>
7474
<div class="mt-10 text-center">
7575
<a-button class="ml-1"
76-
@click="importLocalDialog?.show()">
76+
@click="addDialog?.show()">
7777
<template #icon>
7878
<icon-plus/>
7979
</template>
@@ -159,7 +159,7 @@ const typeName = (type: string) => {
159159
</div>
160160
</div>
161161
</div>
162-
<ServerImportLocalDialog ref="importLocalDialog" @update="doRefresh"/>
162+
<ServerAddDialog ref="addDialog" @update="doRefresh"/>
163163
</template>
164164

165165
<style scoped>

0 commit comments

Comments
 (0)