Skip to content

Commit dbf4569

Browse files
committed
feat(about): optimize code style
1 parent cf51a68 commit dbf4569

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

src/view/about/about.vue

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -177,25 +177,27 @@ import { ref, onMounted } from '@vue/composition-api'
177177
export default {
178178
setup() {
179179
const showTeam = ref(false)
180+
const activeName = ref('first')
181+
const { clientWidth } = document.body
182+
180183
onMounted(() => {
181-
const { clientWidth } = document.body
182-
console.log('clientWidth', clientWidth)
183184
if (clientWidth > 1200 && clientWidth < 1330) {
184185
showTeam.value = true
185186
} else {
186187
showTeam.value = false
187188
}
188189
})
189190
190-
const activeName = ref('first')
191-
191+
/**
192+
* 切换选项
193+
*/
192194
const handleArticle = link => {
193195
window.open(link)
194196
}
195197
196198
return {
197-
activeName,
198199
showTeam,
200+
activeName,
199201
handleArticle,
200202
}
201203
},

0 commit comments

Comments
 (0)