Browse Source

```
fix(App.vue): 统一代码风格,将函数结尾的大括号改为分号

将 goMyLearning 函数结尾的大括号改为分号,并统一 computed 属性的结尾符号,
使代码风格保持一致。
```

zhangningning 2 weeks ago
parent
commit
62417549af
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/App.vue

+ 2 - 2
src/App.vue

@@ -51,7 +51,7 @@ const router = useRouter()
 
 function goMyLearning() {
   router.push('/my-learning')
-}
+};
 // 将 activeIndex 改为响应式,并根据当前路由动态计算
 const activeIndex = computed(() => {
   switch (route.path) {
@@ -62,7 +62,7 @@ const activeIndex = computed(() => {
     default:
       return '1' // 默认返回首页
   }
-})
+});
 </script>
 
 <style lang="scss">