This commit is contained in:
zhutianqi
2021-11-04 17:54:43 +08:00
parent 0fe7cd8384
commit 9e848f0fdd
3 changed files with 20 additions and 6 deletions
+14 -1
View File
@@ -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: {
// 跳转链接