修改project的查询方式

forge
sylor_huang@126.com 5 years ago
parent 9a558e2b57
commit 16fb3540d8

@ -1,6 +1,6 @@
class IssuesController < ApplicationController
before_action :require_login, except: [:index, :show]
before_action :find_project
before_action :find_project_with_id
before_action :set_project_and_user
before_action :check_project_public, only: [:index ,:show, :copy, :index_chosen, :close_issue]
before_action :check_issue_permission, except: [:index, :show, :index_chosen]
@ -430,4 +430,5 @@ class IssuesController < ApplicationController
end
all_branches
end
end

@ -1,5 +1,5 @@
class ProjectTrendsController < ApplicationController
before_action :find_project
before_action :find_project_with_id
before_action :check_project_public
def index

@ -1,6 +1,6 @@
class PullRequestsController < ApplicationController
before_action :require_login
before_action :find_project
before_action :find_project_with_id
before_action :set_repository
before_action :find_pull_request, except: [:index, :new, :create, :check_can_merge]
include TagChosenHelper

@ -1,5 +1,5 @@
class VersionReleasesController < ApplicationController
before_action :find_project
before_action :find_project_with_id
before_action :set_user_and_project
before_action :require_login, except: [:index]
before_action :find_version , only: [:edit, :update, :destroy]

@ -1,6 +1,6 @@
class VersionsController < ApplicationController
before_action :require_login
before_action :find_project
before_action :find_project_with_id
before_action :check_issue_permission, except: [:show, :index]
before_action :set_version, only: [:edit, :update, :destroy, :show,:update_status]

@ -47,8 +47,8 @@ export function initAxiosInterceptors(props) {
// TODO 读取到package.json中的配置
var //proxy = "http://localhost:3000"
proxy="http://123.59.135.93:56666"
// proxy="http://localhost:3000"
// proxy="http://123.59.135.93:56666"
proxy="http://localhost:3000"
// 在这里使用requestMap控制避免用户通过双击等操作发出重复的请求
// 如果需要支持重复的请求考虑config里面自定义一个allowRepeat参考来控制

Loading…
Cancel
Save