add: 讨论

This commit is contained in:
2020-07-08 18:13:20 +08:00
parent f248fa1d11
commit 2403d74ce9
12 changed files with 266 additions and 52 deletions

View File

@ -1,4 +1,6 @@
import '~/layouts/common.styl'
import vditor from 'vditor'
import 'vditor/dist/index.css'
const $tags = document.getElementById('tags')
const floatTop = $tags.offsetTop + $tags.scrollHeight + 30
@ -17,7 +19,7 @@ window.addEvent = addEvent
window.onload = function () {
if (navigator.appName === 'Microsoft Internet Explorer' && parseInt(navigator.appVersion.split(';')[1].replace(/[ ]/g, '').replace('MSIE', '')) <= 9) {
alert('您的浏览器版本过低,继续访问将会出现问题,请升级浏览器版本!')
alert('您的浏览器版本过低,继续访问将会出现问题,请升级浏览器版本!') // eslint-disable-line
}
// 底部返回顶部按钮
@ -54,3 +56,5 @@ window.onload = function () {
const s = document.getElementsByTagName('script')[0]
s.parentNode.insertBefore(hm, s)
}
window.Vditor = vditor