【工具软件】Postman 登陆设置全局变量 token

努力挣钱的小鑫 / 2023-04-28 / 原文

先设置 Tests 脚本

const res = pm.response.json()
pm.globals.set('token', res.data.token)

image

使用

image