|
@@ -43,15 +43,15 @@ class GetRepoLog extends API {
|
|
|
|
|
|
try {
|
|
|
const clone_url = core_url + '/git/log'
|
|
|
- const res = await axios.post(clone_url, { uuid, repo_url: r[0].url })
|
|
|
- if (!res || !res.data || res.data.code !== 200)
|
|
|
+ const response = await axios.post(clone_url, { uuid, repo_url: r[0].url })
|
|
|
+ if (!response || !response.data || response.data.code !== 200)
|
|
|
return res.json({
|
|
|
...BaseStdResponse.ERR,
|
|
|
msg: '获取仓库历史失败!'
|
|
|
})
|
|
|
res.json({
|
|
|
...BaseStdResponse.OK,
|
|
|
- data: res.data
|
|
|
+ data: response.data
|
|
|
})
|
|
|
|
|
|
} catch (error) {
|