diff --git a/web/src/plugins/element.js b/web/src/plugins/element.js index 3746ac1..76c8450 100644 --- a/web/src/plugins/element.js +++ b/web/src/plugins/element.js @@ -6,7 +6,7 @@ import 'element-plus/es/components/notification/style/css' // 如果使用 unplugin-element-plus 并且只使用组件 API,需要手动导入样式 // https://element-plus.org/zh-CN/guide/quickstart.html#%E6%89%8B%E5%8A%A8%E5%AF%BC%E5%85%A5 export default (app) => { - app.config.globalProperties.$ELEMENT = { size: 'default' } + app.config.globalProperties.$ELEMENT = { size: 'small' } app.config.globalProperties.$message = ElMessage app.config.globalProperties.$messageBox = ElMessageBox app.config.globalProperties.$notification = ElNotification diff --git a/web/src/views/onekey/index.vue b/web/src/views/onekey/index.vue index b127e0b..469d19e 100644 --- a/web/src/views/onekey/index.vue +++ b/web/src/views/onekey/index.vue @@ -160,13 +160,15 @@ - - diff --git a/web/src/views/server/index.vue b/web/src/views/server/index.vue index a1b34e4..97140dc 100644 --- a/web/src/views/server/index.vue +++ b/web/src/views/server/index.vue @@ -10,6 +10,7 @@ 连接终端 批量修改 批量删除 + 安装客户端 @@ -47,7 +48,6 @@ @@ -139,6 +139,7 @@ let handleBatchRemove = async () => { $message({ message: data, type: 'success', center: true }) selectHosts.value = [] await handleUpdateList() + hostTableRefs.value.forEach(item => item.clearSelection()) }) } @@ -147,6 +148,13 @@ let handleUpdateHost = (defaultData) => { updateHostData.value = defaultData } +let handleBatchOnekey = async () => { + collectSelectHost() + if (!selectHosts.value.length) return $message.warning('请选择要批量操作的实例') + let ips = selectHosts.value.map(item => item.host).join(',') + $router.push({ path: '/onekey', query: { host: ips, execClientInstallScript: 'true' } }) +} + let handleHiddenIP = () => { hiddenIp.value = hiddenIp.value ? 0 : 1 localStorage.setItem('hiddenIp', String(hiddenIp.value)) diff --git a/web/src/views/terminal/components/info-side.vue b/web/src/views/terminal/components/info-side.vue index 6681d30..677db0a 100644 --- a/web/src/views/terminal/components/info-side.vue +++ b/web/src/views/terminal/components/info-side.vue @@ -220,14 +220,14 @@ const props = defineProps({ const emit = defineEmits(['update:inputCommandStyle', 'connect-sftp', 'click-input-command',]) const socket = ref(null) -const name = ref('') +// const name = ref('') const ping = ref(0) const pingTimer = ref(null) -const sftpStatus = ref(false) +// const sftpStatus = ref(false) -const token = computed(() => $store.token) +// const token = computed(() => $store.token) const hostData = computed(() => props.hostInfo.monitorData || {}) -const host = computed(() => hostData.value.host) +const host = computed(() => props.hostInfo.host) const ipInfo = computed(() => hostData.value?.ipInfo || {}) // const isError = computed(() => !Boolean(hostData.value?.osInfo)) const cpuInfo = computed(() => hostData.value?.cpuInfo || {})