useRouter,
} from '../../src'
import { createApp, ref, reactive, defineComponent, computed } from 'vue'
+import { isArray } from '../../src/utils'
// override existing style on dev with shorter times
if (!__CI__) {
},
})
} else {
+ // @ts-expect-error: because of the generics
return originalPush({
+ // @ts-expect-error: because of the generics
...to,
query: {
testCase: router.currentRoute.value.query.testCase,
const testCase = computed<string>({
get: () => {
let { testCase } = route.query
- return !testCase || Array.isArray(testCase) ? '' : testCase
+ return !testCase || isArray(testCase) ? '' : testCase
},
set(testCase) {
router.push({ query: { ...route.query, testCase } })