Commit 6ddbb1b4 authored by 智勇's avatar 智勇

更新订阅增加限制

parent c2327b55
......@@ -3,7 +3,7 @@ module.exports = {
ENV_CONFIG: '"prod"',
QA_API: '"//qaapi.liangkebang.com"',
// QA_API: '"http://172.30.220.22:3003"',
TESTDATA_API: '"//172.30.220.22:3333"',
TESTDATA_API: '"//testdata.liangkebang.com"',
PIPELINE_API: '"//pipes.liangkebang.com"',
PIPELINE_API_JAVA:'"//pipes.liangkebang.com"',
}
......@@ -552,6 +552,9 @@ export default {
this.is_show = realName === 'mysql'
this.is_wechat = realName === 'h5-ui'
this.is_mock = realName === 'gu-bei' || realName === 'clotho'
this.mock = { key: '"0"', display_name: '' }
this.wechat = { key: '"0"', display_name: '' }
getHostName({ project_name: this.reponame.split('/')[1] }).then(res => {
if (res.data) {
this.domain = res.data.host_name
......
......@@ -317,6 +317,19 @@ export default {
})
} else {
this.temp.update_user = this.$store.getters.name
let flag = true
this.temp.repos.forEach((item) => {
if (item.ref.name == null || item.ref.name === '请选择') {
this.$notify({
title: 'error',
message: '请仔细检查项目和分支名称是否填写正确',
type: 'error',
duration: 2000
})
flag = false
}
})
if (!flag) return false
updateApplication(this.temp).then(() => {
this.dialogFormVisible = false
this.$notify({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment