1. 增加 druid

2. 增加 skywalking
This commit is contained in:
YunaiV
2021-02-20 17:49:42 +08:00
parent d50fa8ed22
commit 14fe0b1a80
6 changed files with 76 additions and 50 deletions

View File

@ -9,7 +9,7 @@ export default {
name: 'YudaoGit',
data() {
return {
url: 'https://github.com/YunaiV/ruoyi-vue-proe'
url: 'https://github.com/YunaiV/ruoyi-vue-pro'
}
},
methods: {

View File

@ -18,7 +18,7 @@ export default {
setTimeout(() => {
// 模拟点击【应用】菜单
that.$refs["iframe"].contentWindow.document.getElementsByClassName('navbar-item')[2].click();
// that.$refs["iframe"].contentWindow.document.getElementsByClassName('navbar-item')[2].click(); // TODO 暂时去掉,存在跨域问题
// 取消加载中
this.loading = false;
}, 230);

View File

@ -0,0 +1,26 @@
<template>
<div v-loading="loading" :style="'height:'+ height">
<iframe :src="src" frameborder="no" style="width: 100%;height: 100%" scrolling="auto" />
</div>
</template>
<script>
export default {
name: "SkyWalking",
data() {
return {
src: "http://skywalking.shop.iocoder.cn", // TODO 芋艿,后续改成配置读取
height: document.documentElement.clientHeight - 94.5 + "px;",
loading: true
};
},
mounted: function() {
setTimeout(() => {
this.loading = false;
}, 230);
const that = this;
window.onresize = function temp() {
that.height = document.documentElement.clientHeight - 94.5 + "px;";
};
}
};
</script>