Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[router] TDesign-cli 生成的模板 deploy 上 vercel 之后点击路由无法跳转 #662

Open
Tracked by #679
600849155 opened this issue Jan 8, 2024 · 9 comments
Assignees
Labels
🙏🏻 Help Wanted Extra attention is needed

Comments

@600849155
Copy link

600849155 commented Jan 8, 2024

tdesign-vue-next 版本

TDesign Starter 0.6.1

重现链接

https://github.com/600849155/vercel-demo
https://vercel-demo-six-gules.vercel.app/

重现步骤

1.安装 tdesign-starter-cli
2.创建项目 td-starter init
3.选择生成Vue3 模板,勾选生成通用模块
4. 将项目 push 到github
5.注册 vercel 并新建 project,连接 github 授权选择刚刚创建的项目,等待构建
6. 打开构建完成的项目,在首页点击 列表页-基础列表页,可见路由变成了 /list/base 但是没有跳转成功

期望结果

期望 在首页点击 列表页-基础列表页,路由可以正常跳转页面

实际结果

点击 列表页-基础列表页,路由没有跳转页面

框架版本

"vue": "^3.2.31"

浏览器版本

Chrome 版本 120.0.6099.199(正式版本) (64 位)

系统版本

windows 11

Node版本

v 18.x

补充说明

出现问题的是 createWebHistory HTML5 模式

下图是点击其他路由的时候提示的报错信息

image

Copy link

github-actions bot commented Jan 8, 2024

👋 @600849155,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@MaybeAyan
Copy link

遇到同样的问题了,useRoute() 钩子undefined了,导致路由能成功跳转,但是菜单状态不对的问题。
image
微信图片_20240109102255

@600849155
Copy link
Author

@MaybeAyan 你也是deploy到vercel上面吗?

@MaybeAyan
Copy link

@600849155 不是呢,正常部署到服务器的

@600849155
Copy link
Author

@600849155 不是呢,正常部署到服务器的

试一下 升级 "tdesign-vue-next": "^1.7.2",我升级之后虽然还是报错但是能跳转了

@uyarn
Copy link
Collaborator

uyarn commented Jan 9, 2024

@600849155 不是呢,正常部署到服务器的

试一下 升级 "tdesign-vue-next": "^1.7.2",我升级之后虽然还是报错但是能跳转了

vue 3.4发布之后出现的问题 #660 可以先这样改下 具体vue3.4 页面模板的项目 route得怎么改最近看看

@uyarn uyarn transferred this issue from Tencent/tdesign-vue-next Jan 9, 2024
Copy link

github-actions bot commented Jan 9, 2024

👋 @600849155,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

Copy link

github-actions bot commented Jan 9, 2024

♥️ 有劳 @timi137137 @liweijie0812 尽快确认问题。
确认有效后将下一步计划和可能需要的时间回复给 @600849155

@timi137137 timi137137 added the 🙏🏻 Help Wanted Extra attention is needed label Jan 9, 2024
@uyarn uyarn added 🐞 BUG Something isn't working 🙏🏻 Help Wanted Extra attention is needed and removed 🙏🏻 Help Wanted Extra attention is needed 🐞 BUG Something isn't working labels Jan 11, 2024
@havefive
Copy link

vue 升级到3.4版本可以复现问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🙏🏻 Help Wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

6 participants