chore(Button): improve code

This commit is contained in:
chenjiahan
2021-04-14 09:35:08 +08:00
committed by neverland
parent 3224a8978f
commit 2be579975a
2 changed files with 6 additions and 9 deletions
+1 -3
View File
@@ -30,7 +30,5 @@ export function route(vm: ComponentPublicInstance<RouteProps>) {
export function useRoute() {
const vm = getCurrentInstance()!.proxy as ComponentPublicInstance<RouteProps>;
return () => {
route(vm);
};
return () => route(vm);
}