feat: 前端升级至vue3,后端代码结构重构,新增权限管理相关功能

This commit is contained in:
meilin.huang
2021-06-07 17:22:07 +08:00
parent af0d51293e
commit e9b58b4eab
370 changed files with 22339 additions and 18399 deletions

View File

@@ -0,0 +1,39 @@
<template>
<div class="file-manage">
<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 { useRoute } from 'vue-router';
export default defineComponent({
name: 'SshTerminalPage',
components: {
SshTerminal,
},
props: {
machineId: { type: Number },
},
setup() {
const route = useRoute();
const state = reactive({
machineId: 0,
height: 700,
});
onBeforeMount(() => {
state.height = window.innerHeight;
state.machineId = Number.parseInt(route.query.id as string);
});
return {
...toRefs(state),
};
},
});
</script>
<style lang="scss">
</style>