Browse Source

Merge branch 'V20211018' of https://git.openi.org.cn/OpenI/aiforge into issue426

pull/500/head
avadesian 3 years ago
parent
commit
0961577cca
2 changed files with 4 additions and 10 deletions
  1. +2
    -8
      templates/repo/issue/list.tmpl
  2. +2
    -2
      web_src/js/components/EditTopics.vue

+ 2
- 8
templates/repo/issue/list.tmpl View File

@@ -3,20 +3,14 @@
{{template "repo/header" .}}
<div class="ui container">
<div class="ui three column stackable grid">
<div class="column" style="display: flex;align-items: center;">
<!-- <div class="ui large breadcrumb">
<a href="{{.RepoLink}}/issues">{{.i18n.Tr "repo.issues"}}</a>
<div class="divider"> / </div>
</div> -->
{{template "repo/issue/navbar" .}}
<div class="column" style="display: flex;align-items: center;">
</div>
<div class="column center aligned">
{{template "repo/issue/search" .}}
</div>
{{if not .Repository.IsArchived}}
<div class="column right aligned">
{{template "repo/issue/navbar" .}}
{{if .PageIsIssueList}}
<a class="ui green button" href="{{.RepoLink}}/issues/new">{{.i18n.Tr "repo.issues.new"}}</a>
{{else}}


+ 2
- 2
web_src/js/components/EditTopics.vue View File

@@ -197,13 +197,13 @@ export default {
})
},
postTopic(){
const patter = /^[\u4e00-\u9fa5a-z0-9][\u4e00-\u9fa5a-zA-Z0-9-]{0,35}$/
const patter = /^[\u4e00-\u9fa5a-zA-Z0-9][\u4e00-\u9fa5a-zA-Z0-9-]{0,34}$/
let regexp = patter.test(this.input)
console.log("regexp",regexp)
if(!regexp){
this.$notify({
message: '主题必须以中文、字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符',
message: '标签名必须以中文、字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符',
duration: 3000,
type:'error'
});


Loading…
Cancel
Save