feat: update monitor, terminal, and SFTP interaction flow
This commit is contained in:
@@ -3,7 +3,7 @@ import { nextTick, ref, onMounted, onUnmounted, watch } from 'vue'
|
||||
import { Terminal } from 'xterm'
|
||||
import { FitAddon } from '@xterm/addon-fit'
|
||||
import { useAuthStore } from '../stores/auth'
|
||||
import axios from 'axios'
|
||||
import client from '../api/client'
|
||||
import { Activity, Cpu, HardDrive, MemoryStick, Clock, ChevronUp, ChevronDown } from 'lucide-vue-next'
|
||||
import 'xterm/css/xterm.css'
|
||||
|
||||
@@ -74,7 +74,7 @@ async function fetchMonitorData() {
|
||||
if (!props.active || status.value !== 'connected') return
|
||||
monitorLoading.value = true
|
||||
try {
|
||||
const res = await axios.get(`/api/monitor/${props.connectionId}`)
|
||||
const res = await client.get(`/monitor/${props.connectionId}`)
|
||||
monitorData.value = res.data
|
||||
} catch {
|
||||
// 静默失败,不影响终端使用
|
||||
|
||||
Reference in New Issue
Block a user