We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cf51a68 commit dbf4569Copy full SHA for dbf4569
1 file changed
src/view/about/about.vue
@@ -177,25 +177,27 @@ import { ref, onMounted } from '@vue/composition-api'
177
export default {
178
setup() {
179
const showTeam = ref(false)
180
+ const activeName = ref('first')
181
+ const { clientWidth } = document.body
182
+
183
onMounted(() => {
- const { clientWidth } = document.body
- console.log('clientWidth', clientWidth)
184
if (clientWidth > 1200 && clientWidth < 1330) {
185
showTeam.value = true
186
} else {
187
showTeam.value = false
188
}
189
})
190
- const activeName = ref('first')
191
-
+ /**
192
+ * 切换选项
193
+ */
194
const handleArticle = link => {
195
window.open(link)
196
197
198
return {
- activeName,
199
showTeam,
200
+ activeName,
201
handleArticle,
202
203
},
0 commit comments