Closed yymelo closed 7 months ago
export const authConfig = defineAuthConfig(async appData => { const { currentUser = {} } = appData if (!currentUser?.enabled) { history?.push('/'); } return { initialAuth: { user: currentUser?.id ? true : false, }, NoAuthFallback: (routeConfig) => { console.log('routeConfig ', routeConfig); return ( <div>123</div> ) }, } })
上述代码中
期望与官方文档描述一致https://v3.ice.work/docs/guide/advanced/auth#%E8%87%AA%E5%AE%9A%E4%B9%89%E6%9D%83%E9%99%90%E7%BB%84%E4%BB%B6
代码报错无法编译
3.3.0
No response
提供下具体编译错误信息
就是上图那样的问题,写html标签就报错了
脑子不清醒,官方文档给的是tsx,工程里起来的是ts。。。。没注意,犯傻了
Describe the bug
上述代码中
Expected behavior
期望与官方文档描述一致https://v3.ice.work/docs/guide/advanced/auth#%E8%87%AA%E5%AE%9A%E4%B9%89%E6%9D%83%E9%99%90%E7%BB%84%E4%BB%B6
Actual behavior
代码报错无法编译
Version of ice.js
3.3.0
Content of build.json or ice.config.mts
No response
Additional context
No response