mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-07-16 20:15:06 +08:00
1. 增加 druid
2. 增加 skywalking
This commit is contained in:
@ -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: {
|
||||
|
@ -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);
|
||||
|
26
ruoyi-ui/src/views/infra/skywalking/index.vue
Normal file
26
ruoyi-ui/src/views/infra/skywalking/index.vue
Normal 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>
|
Reference in New Issue
Block a user