Ai
101 Star 1.4K Fork 438

lybbn/django-vue-lyadmin

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
lyterminal.vue 1.03 KB
一键复制 编辑 原始数据 按行查看 历史
<template>
<div class="lycontainer" >
<ly-xterm :wsuri="wsuri"></ly-xterm>
</div>
</template>
<script>
import LyXterm from "@/components/terminal/xterm";
import {domain,url} from '@/api/url'
export default {
name: "lyterminal",
components: {LyXterm},
data(){
return{
wsuri:(window.location.protocol === 'http:' ? 'ws://' : 'wss://') + domain+"/ws/webssh/",
}
},
created() {
let url = window.location.href
let getqyinfo = url.split('?')[1]
let getqys = new URLSearchParams('?'+getqyinfo)
let id = getqys.get('id')
let host = getqys.get('host')
document.title =host+"在线终端WEBSSH"
this.wsuri = this.wsuri +"?id="+id
},
}
</script>
<style lang="scss" scoped>
.lycontainer{
background: black;
height: 100% ;
width: 100%;
/*background: black;*/
/*padding: 10px;*/
overflow: hidden;
}
</style>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/lybbn/django-vue-lyadmin.git
git@gitee.com:lybbn/django-vue-lyadmin.git
lybbn
django-vue-lyadmin
django-vue-lyadmin
master

搜索帮助