Revert "👷 Add VUE_APP_CODEFUND build setting"

This reverts commit acfb534344.
This commit is contained in:
liyang 2019-05-14 19:34:40 +08:00
parent acfb534344
commit 15b987c8c1
5 changed files with 0 additions and 38 deletions

View File

@ -2,6 +2,3 @@
# 页面 title 前缀
VUE_APP_TITLE=D2Admin Dev
# codefund 广告
# VUE_APP_CODEFUND=TRUE

View File

@ -8,6 +8,3 @@ VUE_APP_BUILD_MODE=NETLIFY
# 显示源码按钮
VUE_APP_SCOURCE_LINK=TRUE
# codefund 广告
VUE_APP_CODEFUND=TRUE

View File

@ -8,6 +8,3 @@ VUE_APP_BUILD_MODE=TRAVIS
# 显示源码按钮
VUE_APP_SCOURCE_LINK=TRUE
# codefund 广告
VUE_APP_CODEFUND=TRUE

View File

@ -13,24 +13,9 @@
src="./image/darkblue@2x.png"
alt="Fork me on GitHub">
</a>
<div class="d2-mt" id="codefund"></div>
</div>
</template>
<script>
export default {
mounted () {
// codefund 广 D2Admin 广 Travis Netlify
if (process.env.VUE_APP_CODEFUND) {
let s = document.createElement('script')
s.type = 'text/javascript'
s.src = 'https://codefund.app/properties/284/funder.js'
document.getElementsByTagName('head')[0].appendChild(s)
}
}
}
</script>
<style lang="scss" scoped>
.d2-page-cover {
@extend %full;

View File

@ -72,7 +72,6 @@
</p>
</div>
</div>
<div class="page-login--codefund" id="codefund"></div>
</div>
<el-dialog
title="快速选择用户"
@ -141,13 +140,6 @@ export default {
this.timeInterval = setInterval(() => {
this.refreshTime()
}, 1000)
// codefund 广 D2Admin 广 Travis Netlify
if (process.env.VUE_APP_CODEFUND) {
let s = document.createElement('script')
s.type = 'text/javascript'
s.src = 'https://codefund.app/properties/284/funder.js'
document.getElementsByTagName('head')[0].appendChild(s)
}
},
beforeDestroy () {
clearInterval(this.timeInterval)
@ -238,12 +230,6 @@ export default {
}
}
}
// https://codefund.app
.page-login--codefund {
position: absolute;
top: 20px;
right: 20px;
}
// main
.page-login--logo {
width: 240px;