#8647 fix vitest warnings #1467
|
@ -190,7 +190,7 @@ const searchModule = () => {
|
|||
<template>
|
||||
<QList padding class="column-max-width">
|
||||
<template v-if="$props.source === 'main'">
|
||||
<template v-if="$route?.matched[1]?.name === 'Dashboard'">
|
||||
<template v-if="route?.matched[1]?.name === 'Dashboard'">
|
||||
|
||||
<QItem class="q-pb-md">
|
||||
<VnInput
|
||||
v-model="search"
|
||||
|
@ -271,7 +271,7 @@ const searchModule = () => {
|
|||
</template>
|
||||
|
||||
<template v-for="item in items" :key="item.name">
|
||||
<template v-if="item.name === $route?.matched[1]?.name">
|
||||
<template v-if="item.name === route?.matched[1]?.name">
|
||||
jsegarra
commented
preferiria usar v-else, que dices? preferiria usar v-else, que dices?
|
||||
<QItem class="header">
|
||||
<QItemSection avatar v-if="item.icon">
|
||||
<QIcon :name="item.icon" />
|
||||
|
|
|
@ -91,12 +91,17 @@ export function createWrapper(component, options) {
|
|||
global: {
|
||||
plugins: [i18n, pinia],
|
||||
directives: {
|
||||
shortcut: {},
|
||||
shortcut: () => vi.fn(),
|
||||
},
|
||||
},
|
||||
stubs: ['router-link'],
|
||||
mocks: {
|
||||
t: (tKey) => tKey,
|
||||
$t: (tKey) => tKey,
|
||||
$route: () => vi.fn(),
|
||||
},
|
||||
directives: {
|
||||
shortcut: () => vi.fn(),
|
||||
},
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue
elimino el $route porque salian warnings