This commit is contained in:
Zheng Jie
2024-08-17 21:17:40 +08:00
parent e89b752667
commit 1c84fca443
4 changed files with 0 additions and 55 deletions

View File

@@ -7,7 +7,6 @@
<meta name="renderer" content="webkit"> <meta name="renderer" content="webkit">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<link href="<%= BASE_URL %>favicon.ico" rel="icon"> <link href="<%= BASE_URL %>favicon.ico" rel="icon">
<script async="true" src="https://cdn.wwads.cn/js/makemoney.js"></script>
<title><%= webpackConfig.name %></title> <title><%= webpackConfig.name %></title>
</head> </head>
<body> <body>

View File

@@ -1,24 +0,0 @@
<template>
<div
v-if="show"
id="ww-container"
class="wwads-cn wwads-vertical"
data-id="148"
style="z-index:10000;position:fixed;bottom:0;right:1px;max-width:200px;border-radius:5px;"
/>
</template>
<script>
export default {
data() {
return {
show: true
}
},
created() {
if (window._AdBlockInit === undefined) {
this.show = false
}
}
}
</script>

View File

@@ -5,7 +5,6 @@
<router-view :key="key" /> <router-view :key="key" />
</keep-alive> </keep-alive>
</transition> </transition>
<Ad v-show="showAd" />
<div v-if="$store.state.settings.showFooter" id="el-main-footer"> <div v-if="$store.state.settings.showFooter" id="el-main-footer">
<span v-html="$store.state.settings.footerTxt" /> <span v-html="$store.state.settings.footerTxt" />
<span v-if="$store.state.settings.caseNumber"> </span> <span v-if="$store.state.settings.caseNumber"> </span>
@@ -15,19 +14,8 @@
</template> </template>
<script> <script>
import Ad from '@/components/Ad'
export default { export default {
name: 'AppMain', name: 'AppMain',
components: { Ad },
data() {
return {
showAd: true,
list: ['/dashboard', '/monitor/online', '/monitor/logs',
'/monitor/errorLog', '/monitor/server', '/sys-tools/generator',
'/sys-tools/storage', '/components/echarts', '/components/icon',
'/components/markdown', '/components/yaml', '']
}
},
computed: { computed: {
cachedViews() { cachedViews() {
return this.$store.state.tagsView.cachedViews return this.$store.state.tagsView.cachedViews
@@ -35,23 +23,7 @@ export default {
key() { key() {
return this.$route.path return this.$route.path
} }
},
watch: {
'$route.path'(newPath) {
// 判断是否包含在list中
this.checkAd(newPath)
}
},
created() {
this.checkAd(this.$route.path)
},
methods: {
checkAd(path) {
// 判断是否包含在list中
this.showAd = !this.list.includes(path)
}
} }
} }
</script> </script>

View File

@@ -1,7 +1,5 @@
<template> <template>
<div class="dashboard-container"> <div class="dashboard-container">
<!--广告-->
<wwads />
<div class="dashboard-editor-container"> <div class="dashboard-editor-container">
<github-corner class="github-corner" /> <github-corner class="github-corner" />