Skip to content

Commit

Permalink
chore: minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dragon-fish committed Jun 21, 2021
1 parent 5c1074d commit 34f2b6f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 18 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "2.0.4",
"private": true,
"main": "index.js",
"repository": "https://github.com/Wjghj-Project/pixiv-now.git",
"repository": "https://github.com/GratisNow/PixivNow.git",
"author": "Dragon-Fish <824399619@qq.com>",
"license": "MIT",
"scripts": {
Expand Down
21 changes: 4 additions & 17 deletions src/App.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template lang="pug">
Header(ref="globalHeader")

main(:style="{ minHeight: mainHeight + 'px' }")
main
article
router-view

Expand All @@ -20,23 +20,10 @@ export default defineComponent({
name: 'App',
components: { Header, Footer, NProgress },
data() {
return {
mainHeight: 0,
}
},
methods: {
resizeMain() {
// const navHeight = this.$refs.globalHeader.$el.offsetHeight
// const footerHeight = this.$refs.globalFooter.$el.offsetHeight
// const clientHeight = window.screen.availHeight
// console.log({ navHeight, footerHeight, clientHeight })
// this.mainHeight = clientHeight - navHeight - footerHeight
},
},
mounted() {
this.resizeMain()
window.addEventListener('resize', this.resizeMain)
return {}
},
methods: {},
mounted() {},
})
</script>

Expand Down

0 comments on commit 34f2b6f

Please sign in to comment.