Replies: 1 comment
-
|
在middleware中判断是否有id,有则调用next继续请求 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
如题所示,我使用vue,有一个组件在新建/编辑时被共用。
首先只考虑编辑的情况,直接进去就用一个 useWatcher 并给api传参从url拿到的id ,那么新建的情况下并不需要做这个请求,应当如何做呢?我能通过设置条件来打断请求吗?
Beta Was this translation helpful? Give feedback.
All reactions