diff --git a/index.html b/index.html index 78996f6..bc648d2 100644 --- a/index.html +++ b/index.html @@ -7,11 +7,6 @@ - - PeterAlbus的博客 diff --git a/public/iconfont.ttf b/public/iconfont.ttf new file mode 100644 index 0000000..b8b08a7 Binary files /dev/null and b/public/iconfont.ttf differ diff --git a/public/iconfont.woff b/public/iconfont.woff new file mode 100644 index 0000000..c595d55 Binary files /dev/null and b/public/iconfont.woff differ diff --git a/public/iconfont.woff2 b/public/iconfont.woff2 new file mode 100644 index 0000000..4859e97 Binary files /dev/null and b/public/iconfont.woff2 differ diff --git a/src/App.vue b/src/App.vue index 4f68687..f2d2333 100644 --- a/src/App.vue +++ b/src/App.vue @@ -180,4 +180,8 @@ a { transform: scale(0.5); } } + +#app .music-container .aplayer .aplayer-body{ + bottom: 120px; +} diff --git a/src/assets/iconfont/iconfont.css b/src/assets/iconfont/iconfont.css index d82f8b1..a669300 100644 --- a/src/assets/iconfont/iconfont.css +++ b/src/assets/iconfont/iconfont.css @@ -1,8 +1,8 @@ @font-face { font-family: "iconfont"; /* Project id 2701288 */ - src: url('iconfont.woff2?t=1627292686407') format('woff2'), - url('iconfont.woff?t=1627292686407') format('woff'), - url('iconfont.ttf?t=1627292686407') format('truetype'); + src: url('./iconfont.woff2?t=1627292686407') format('woff2'), + url('./iconfont.woff?t=1627292686407') format('woff'), + url('./iconfont.ttf?t=1627292686407') format('truetype'); } .iconfont { diff --git a/src/views/Blog.vue b/src/views/Blog.vue index 318dada..52bc467 100644 --- a/src/views/Blog.vue +++ b/src/views/Blog.vue @@ -97,7 +97,16 @@ const getBlog=()=>{ .then(res=>{ blog.value=res.data; blog.value.blogViews+=1; - axios.get('/visitBlog?blogId='+blog.value.blogId+"&ipAddress="+localStorage.getItem('ipAddress')); + if(!localStorage.getItem('ipAddress')||localStorage.getItem('ipAddress')=='127.0.0.1') { + axios.get('https://ip.useragentinfo.com/json') + .then((res)=>{ + localStorage.setItem('ipAddress',res.data.ip||'127.0.0.1') + axios.get('/visitBlog?blogId='+blog.value.blogId+"&ipAddress="+localStorage.getItem('ipAddress')); + }) + } + else { + axios.get('/visitBlog?blogId='+blog.value.blogId+"&ipAddress="+localStorage.getItem('ipAddress')); + } document.title = blog.value.blogTitle+'——PeterAlbus的博客' let meta:any=document.querySelector('meta[name="description"]') if(!meta)