Skip to content
  • Projects
  • Groups
  • Snippets
  • Help

front-document / vue-front

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Settings
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • vue-front
  • src
  • api
  • gitLog.js
  • luyt's avatar
    add;测试git hook · 6bef5cc8
    luyt committed Mar 08, 2022
    6bef5cc8 Browse Files
gitLog.js 398 Bytes
RawBlameHistoryPermalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
import request2 from '@/plugins/axios/index2.js';

// console.log('request2',request2)
const gitLog = {
  getCommitList(id) {
    return request2({
      url: '/commons/getList',
      method: 'get',
      params: {
        project_id:id
      }
    })
  },
  getBranches(id) {
    return request2({
      url: `/${id}/repository/branches`,
      method: 'get',
    })
  },
}

export default gitLog