开源
-
{{github.license}}
+
{{github.license}}
评论
@@ -83,12 +83,12 @@
订阅者 |
- {{formatNumber(github.starNum)}} |
+ {{formatNumber(github.starNum)}} |
{{briefName}} |
{{brief}} |
是 |
否 |
- {{formatNumber(github.subscribers_count)}} |
+ {{formatNumber(github.subscribers_count)}} |
@@ -102,12 +102,12 @@
协议 |
- {{github.open_issues_count}} |
+ {{github.open_issues_count}} |
是 |
否 |
- {{github.default_branch}} |
- {{formatNumber(github.forks_count)}} |
- {{github.license}} |
+ {{github.default_branch}} |
+ {{formatNumber(github.forks_count)}} |
+ {{github.license}} |
@@ -702,14 +702,23 @@ export default {
}).then((res)=>{
if(res.data){
that.github.starNum=res.data.stargazers_count;
- that.github.language=res.data.language;
+ if(res.data.language===null){
+ that.github.language='无';
+
+ }else {
+ that.github.language=res.data.language;
+ }
that.github.watchers_count=res.data.watchers_count;
that.github.subscribers_count=res.data.subscribers_count;
that.github.allow_forking=res.data.allow_forking;
that.github.open_issues_count=res.data.open_issues_count;
that.github.forks_count=res.data.forks_count;
that.github.organization=res.data.owner.type;
- that.github.license=res.data.license.spdx_id;
+ if(!res.data.license){
+ that.github.license='无';
+ }else{
+ that.github.license=res.data.license.spdx_id;
+ }
that.github.name=res.data.name;
that.github.default_branch=res.data.default_branch;
that.github.avatar_url=res.data.owner.avatar_url;
@@ -850,12 +859,30 @@ export default {
},
// 截取文章内容的前 35 个字,并加上省略号
brief: function() {
- return this.github.language.substr(0, 7)+'...';
+ if(this.github.language){
+ return this.github.language.substr(0, 7)+'...';
+ }else{
+ return false;
+ }
+
},
briefName: function() {
- return this.github.name.substr(0, 7)+'...';
+ if(this.github.name){
+ return this.github.name.substr(0, 7)+'...';
+ }else{
+ return false;
+ }
+
},
+ briefTopName: function() {
+ if(this.projectName){
+ return this.projectName.substr(0, 20)+'...';
+ }else{
+ return false;
+ }
+
+ },
}
diff --git a/src/components/System/Manage/commentManage.vue b/src/components/System/Manage/commentManage.vue
index fdb24bf..a10c0d2 100644
--- a/src/components/System/Manage/commentManage.vue
+++ b/src/components/System/Manage/commentManage.vue
@@ -1,12 +1,270 @@
- 评论管理
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 有效
+ 无效
+
+
+
+
+
+ 重置
+ 提交
+
+
+
+
diff --git a/src/components/System/Manage/projectManage.vue b/src/components/System/Manage/projectManage.vue
index a51cfbd..13f371d 100644
--- a/src/components/System/Manage/projectManage.vue
+++ b/src/components/System/Manage/projectManage.vue
@@ -1,12 +1,317 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 有效
+ 无效
+
+
+
+
+
+ 重置
+ 提交
+
+
+
+
+