Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

希望就一下几点进行优化,提升最佳实践 #94

Open
yangnuowei88 opened this issue Jun 26, 2024 · 0 comments
Open

希望就一下几点进行优化,提升最佳实践 #94

yangnuowei88 opened this issue Jun 26, 2024 · 0 comments

Comments

@yangnuowei88
Copy link

  1. 大量重复性引用(考虑提取为公共文件,或者利用vite插件自动导入)
import { useRouter } from 'vue-router'
import { computed, onDeactivated, onMounted, onUnmounted, reactive } from 'vue'
  1. 没有用TS,可否直接去掉算了
<script setup lang="ts">
  1. 事件钩子可以用一个方法进行保障聚合在一起吗?
  2. 处理函数是否应该弄个统一的命名空间聚合起来,感觉太分散了
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant