test: enable all demo snapshots

This commit is contained in:
chenjiahan
2020-11-08 20:30:51 +08:00
parent cd9c36fe38
commit 24c4896a11
181 changed files with 10306 additions and 7520 deletions
+2 -2
View File
@@ -32,10 +32,10 @@ export default createComponent({
const { parent, index } = useParent(TABBAR_KEY);
const active = computed(() => {
const { $route } = vm;
const { route, modelValue } = parent.props;
if (route && $route) {
if (route && '$route' in vm) {
const { $route } = vm;
const { to } = props;
const config = isObject(to) ? to : { path: to };
const pathMatched = config.path === $route.path;