commit
This commit is contained in:
@@ -19,12 +19,25 @@
|
||||
data() {
|
||||
return {
|
||||
linkList: [],
|
||||
width: ''
|
||||
}
|
||||
},
|
||||
computed: {},
|
||||
watch: {},
|
||||
watch: {
|
||||
width(val) {
|
||||
console.log(val);
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.getLink();
|
||||
this.width = document.getElementById("link").offsetWidth
|
||||
let self = this
|
||||
this.screenWidth = document.body.clientWidth
|
||||
window.onresize = () => {
|
||||
return (() => {
|
||||
console.log(document.body.clientWidth);
|
||||
})
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
// 跳转链接
|
||||
|
||||
Reference in New Issue
Block a user