2
2
3
3
import ServerStatus from " ../components/Server/ServerStatus.vue" ;
4
4
import {EnumServerType } from " ../types/Server" ;
5
- import ServerImportLocalDialog from " ../components/Server/ServerImportLocalDialog .vue" ;
5
+ import ServerAddDialog from " ../components/Server/ServerAddDialog .vue" ;
6
6
import {ref } from " vue" ;
7
7
import {useServerStore } from " ../store/modules/server" ;
8
8
import {AppConfig } from " ../config" ;
@@ -15,7 +15,7 @@ import ServerActionInfo from "../components/Server/ServerActionInfo.vue";
15
15
import ServerActionSetting from " ../components/Server/ServerActionSetting.vue" ;
16
16
import {functionToLabels } from " ../lib/aigcpanel" ;
17
17
18
- const importLocalDialog = ref <InstanceType <typeof ServerImportLocalDialog > | null >(null )
18
+ const addDialog = ref <InstanceType <typeof ServerAddDialog > | null >(null )
19
19
const serverStore = useServerStore ()
20
20
const helpShow = ref (false )
21
21
@@ -49,7 +49,7 @@ const typeName = (type: string) => {
49
49
<div class =" flex items-center" >
50
50
<a-button v-if =" serverStore.records.length>0"
51
51
class =" ml-1"
52
- @click =" importLocalDialog ?.show()" >
52
+ @click =" addDialog ?.show()" >
53
53
<template #icon >
54
54
<icon-plus />
55
55
</template >
@@ -73,7 +73,7 @@ const typeName = (type: string) => {
73
73
</div >
74
74
<div class =" mt-10 text-center" >
75
75
<a-button class =" ml-1"
76
- @click =" importLocalDialog ?.show()" >
76
+ @click =" addDialog ?.show()" >
77
77
<template #icon >
78
78
<icon-plus />
79
79
</template >
@@ -159,7 +159,7 @@ const typeName = (type: string) => {
159
159
</div >
160
160
</div >
161
161
</div >
162
- <ServerImportLocalDialog ref =" importLocalDialog " @update =" doRefresh" />
162
+ <ServerAddDialog ref =" addDialog " @update =" doRefresh" />
163
163
</template >
164
164
165
165
<style scoped>
0 commit comments