mirror of
https://github.com/Binaryify/vue-tetris.git
synced 2026-01-21 05:57:57 +08:00
优化链接
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user