优化链接

This commit is contained in:
binaryify
2017-06-14 16:50:20 +08:00
parent b68d5d7201
commit 7dc781f042

View File

@@ -2,9 +2,9 @@ import { transform, i18n, lan } from '../../unit/const'
import { isMobile } from '../../unit'
export default {
name: 'Guide',
data(){
data() {
return {
isMobile:isMobile()
isMobile: isMobile()
}
},
computed: {
@@ -12,15 +12,16 @@ export default {
github: () => i18n.github[lan],
QRCode: () => i18n.QRCode[lan],
QRTitle: () => i18n.QRNotice[lan],
QRSrc: () => "http://binaryify.github.io/vue-tetris/static/qr.jpeg"
QRSrc: () =>
window.location.protocol +
'//binaryify.github.io/vue-tetris/static/qr.jpeg'
},
mounted(){
mounted() {
window.addEventListener('resize', this.resize.bind(this), true)
},
methods:{
resize(){
this.isMobile=isMobile()
methods: {
resize() {
this.isMobile = isMobile()
}
}
}