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