mirror of
https://gitee.com/h_mo/uniapp-vue3-vite-ts-template
synced 2025-04-06 03:58:03 +08:00
fix: 导入 'uni-mini-router' 类型不正确问题
This commit is contained in:
parent
0fea321256
commit
f997a9d6c1
@ -6,8 +6,6 @@ function onClick() {
|
|||||||
console.log('click');
|
console.log('click');
|
||||||
router.push({ name: 'Login' });
|
router.push({ name: 'Login' });
|
||||||
}
|
}
|
||||||
|
|
||||||
// const pt = __UNI_PLATFORM__;
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
3
src/types/uni-mini-router.d.ts
vendored
3
src/types/uni-mini-router.d.ts
vendored
@ -1,4 +1,7 @@
|
|||||||
|
import 'uni-mini-router';
|
||||||
|
|
||||||
declare module 'uni-mini-router' {
|
declare module 'uni-mini-router' {
|
||||||
|
|
||||||
interface Route {
|
interface Route {
|
||||||
meta?: {
|
meta?: {
|
||||||
ignoreAuth?: boolean
|
ignoreAuth?: boolean
|
||||||
|
Loading…
x
Reference in New Issue
Block a user