perf: simplify watch param

This commit is contained in:
chenjiahan
2020-08-25 15:12:53 +08:00
parent c371301648
commit e686738fd5
5 changed files with 8 additions and 12 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ export default createComponent({
setup(props, { emit }) {
const { parent, index } = useParent(SIDEBAR_KEY, ref());
const selected = computed(() => index.value === +parent.active.value);
const selected = computed(() => index.value === +parent.active());
return (vm) => {
const { dot, badge, title, disabled } = props;