diff --git a/src/components/Home/Home.vue b/src/components/Home/Home.vue
index 39d4d9f..d27cfcb 100644
--- a/src/components/Home/Home.vue
+++ b/src/components/Home/Home.vue
@@ -70,7 +70,7 @@
- 登 录
+ 登 录
@@ -79,11 +79,11 @@
用户总数
- {{userTotal}}
+ {{userTotal}}
开源项目
- {{projectTotal}}
+ {{projectTotal}}
@@ -165,11 +165,14 @@ export default {
mounted() {
// this.account(); //获取cookie的方法
this.ProjectLists();
- this.categoryList();
- this.getUserTotal();
- this.getProjectTotal();
},
created() {
+
+ this.categoryList();
+ setTimeout(()=>{
+ this.getProjectTotal();
+ },1000)
+ this.getUserTotal();
},
computed: {
noMore() {
@@ -290,9 +293,6 @@ export default {
method: 'post',
// 请求的地址
url: '/api/userNum',
- // URL 中的查询参数
- params: {
- }
}).then((res)=>{
that.userTotal=res.data;
});
@@ -304,9 +304,6 @@ export default {
// 请求的地址
url: '/api/countNum',
// URL 中的查询参数
- params: {
-
- }
}).then((res)=>{
that.projectTotal=res.data;
});
diff --git a/src/components/OneFile/OneFile.vue b/src/components/OneFile/OneFile.vue
index ed44791..a204bf0 100644
--- a/src/components/OneFile/OneFile.vue
+++ b/src/components/OneFile/OneFile.vue
@@ -77,7 +77,7 @@
- 提交
+ 提交
diff --git a/src/components/OneFile/OneFileDetail.vue b/src/components/OneFile/OneFileDetail.vue
index 505f3ba..98c6df9 100644
--- a/src/components/OneFile/OneFileDetail.vue
+++ b/src/components/OneFile/OneFileDetail.vue
@@ -15,25 +15,25 @@
-
+
{{oneFileName}} :
-
+
{{description}}
发布于:
- {{userName}}
+ {{userName}}
·
- 主语言 {{language}}
+ 主语言 {{language}}
·
- {{formatNumber(lookNum)}}
+ {{formatNumber(lookNum)}}
次查看
- 访问
+ 访问
复制
@@ -42,6 +42,7 @@
-
-
+
加载中...
@@ -21,7 +21,7 @@
-
+
diff --git a/src/components/Paper/ArticleList.vue b/src/components/Paper/ArticleList.vue
index b8bb38e..33bfaef 100644
--- a/src/components/Paper/ArticleList.vue
+++ b/src/components/Paper/ArticleList.vue
@@ -9,17 +9,17 @@
作者:
- {{articleList.username}}
+ {{articleList.username}}
●
发布于
- {{articleList.publishtime}}
+ {{articleList.publishtime}}
●
阅读:
- {{ formatNumber(articleList.ReadCount) }}
+ {{ formatNumber(articleList.ReadCount) }}