update
This commit is contained in:
@@ -7,7 +7,6 @@
|
||||
<meta name="renderer" content="webkit">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
|
||||
<link href="<%= BASE_URL %>favicon.ico" rel="icon">
|
||||
<script async="true" src="https://cdn.wwads.cn/js/makemoney.js"></script>
|
||||
<title><%= webpackConfig.name %></title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
@@ -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>
|
||||
@@ -5,7 +5,6 @@
|
||||
<router-view :key="key" />
|
||||
</keep-alive>
|
||||
</transition>
|
||||
<Ad v-show="showAd" />
|
||||
<div v-if="$store.state.settings.showFooter" id="el-main-footer">
|
||||
<span v-html="$store.state.settings.footerTxt" />
|
||||
<span v-if="$store.state.settings.caseNumber"> ⋅ </span>
|
||||
@@ -15,19 +14,8 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import Ad from '@/components/Ad'
|
||||
export default {
|
||||
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: {
|
||||
cachedViews() {
|
||||
return this.$store.state.tagsView.cachedViews
|
||||
@@ -35,23 +23,7 @@ export default {
|
||||
key() {
|
||||
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>
|
||||
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
<template>
|
||||
<div class="dashboard-container">
|
||||
<!--广告-->
|
||||
<wwads />
|
||||
<div class="dashboard-editor-container">
|
||||
<github-corner class="github-corner" />
|
||||
|
||||
|
||||
Reference in New Issue
Block a user