diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl index 235634897..d253e4752 100644 --- a/templates/repo/home.tmpl +++ b/templates/repo/home.tmpl @@ -255,7 +255,7 @@ {{end}}
diff --git a/web_src/js/components/EditAboutInfo.vue b/web_src/js/components/EditAboutInfo.vue
index f9bb872ad..78cdb70a6 100644
--- a/web_src/js/components/EditAboutInfo.vue
+++ b/web_src/js/components/EditAboutInfo.vue
@@ -1,7 +1,7 @@
简介
-
+
@@ -53,7 +53,7 @@ export default {
index_web: '',
repo_name_name: '',
alias:'',
- IsSigned:false
+ IsPermit:false
},
// rule1:[{min:3,max:5,message:'1',trigger:"blur"}],
rule: {
@@ -65,14 +65,15 @@ export default {
},
methods: {
getIsSigned(){
- this.IsSigned = document.getElementById("repo-desc").dataset.issigned;
+ var isadmin= document.getElementById("repo-desc").dataset.isadmin;
+ var isarchived=document.getElementById("repo-desc").dataset.isarchived;
// console.log("IsSigned:",this.IsSigned)
- if (this.IsSigned==true || this.IsSigned=="true"){
- this.IsSigned=true;
+ if ((isadmin==true || isadmin=="true")&& (isarchived==false || isarchived=="false")){
+ this.IsPermit=true;
}
},
editClick() {
- if (this.IsSigned){
+ if (this.IsPermit){
this.editDataDialog = true;
}
},