mirror of
				https://gitee.com/dromara/mayfly-go
				synced 2025-11-04 08:20:25 +08:00 
			
		
		
		
	feat: 设置功能新增ssh终端样式自定义
This commit is contained in:
		@@ -1,12 +1,12 @@
 | 
			
		||||
<template>
 | 
			
		||||
    <div class="file-manage">
 | 
			
		||||
    <div>
 | 
			
		||||
        <ssh-terminal ref="terminal" :machineId="machineId" :height="height + 'px'" />
 | 
			
		||||
    </div>
 | 
			
		||||
</template>
 | 
			
		||||
 | 
			
		||||
<script lang="ts">
 | 
			
		||||
import SshTerminal from './SshTerminal.vue';
 | 
			
		||||
import { reactive, toRefs, onBeforeMount, defineComponent } from 'vue';
 | 
			
		||||
import { reactive, toRefs, onBeforeMount, defineComponent, onMounted } from 'vue';
 | 
			
		||||
import { useRoute } from 'vue-router';
 | 
			
		||||
 | 
			
		||||
export default defineComponent({
 | 
			
		||||
@@ -24,7 +24,7 @@ export default defineComponent({
 | 
			
		||||
            height: 700,
 | 
			
		||||
        });
 | 
			
		||||
 | 
			
		||||
        onBeforeMount(() => {
 | 
			
		||||
        onMounted(() => {
 | 
			
		||||
            state.height = window.innerHeight;
 | 
			
		||||
            state.machineId = Number.parseInt(route.query.id as string);
 | 
			
		||||
        });
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user