Replies: 1 comment
-
你可以直接在全局的beforeRequest和responded里处理加载状态的显示和隐藏就好了,如果需要通过 |
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
-
需求场景如下:
以下是我模拟我目前业务场景的代码
utils/request.ts 请求工具类
/api/user.ts 接口定义文件
index.vue 页面业务代码
Beta Was this translation helpful? Give feedback.
All reactions