diff --git a/README.md b/README.md
index fe595f9..0d74a50 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,7 @@
# nebula
+
+[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Frymcu%2Fnebula.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2Frymcu%2Fnebula?ref=badge_shield)
+
## 💡 简介
nebula([ˈnebyələ],n.星云)是一款现代化的知识社区项目,使用 Vue + NuxtJS + Element-UI 实现
@@ -90,12 +93,15 @@ nebula([ˈnebyələ],n.星云)是一款现代化的知识社区项目,
在提功能建议前可以先看一下 [计划表](https://rymcu.com/article/29) ,避免重复提议
## 鸣谢
-- 感谢 `JetBrains` 对本项目的帮助,为作者提供了开源许可版 `JetBrains` 全家桶
-
-
-![JetBrains](assets/jb_beam.svg)
-[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Frymcu%2Fnebula.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2Frymcu%2Fnebula?ref=badge_shield)
+- 感谢以下开发者对 Nebula 作出的贡献:
+
+
+
+
+- 感谢 `JetBrains` 对本项目的帮助,为作者提供了开源许可版 `JetBrains` 全家桶
+
+![JetBrains](assets/jb_beam.svg)
## Build Setup
```bash
@@ -128,6 +134,5 @@ $ npm generate
For detailed explanation on how things work, check out [Nuxt.js docs](https://nuxtjs.org).
-
## License
-[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Frymcu%2Fnebula.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Frymcu%2Fnebula?ref=badge_large)
\ No newline at end of file
+[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Frymcu%2Fnebula.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Frymcu%2Fnebula?ref=badge_large)
diff --git a/pages/admin/dashboard.vue b/pages/admin/dashboard.vue
index 91a397e..e17a716 100644
--- a/pages/admin/dashboard.vue
+++ b/pages/admin/dashboard.vue
@@ -54,7 +54,7 @@
+ effect="plain">
# {{ tag.tagTitle }}
@@ -64,13 +64,14 @@
取消优选
+ @click="cancelPreference(scope.$index, scope.row.idArticle)" plain>取消优选
+
设为优选
编辑标签
下架
+ @click="toggleStatus(scope.$index, scope.row)" plain>下架
上架
@@ -80,9 +81,9 @@
+ @current-change="handleArticleCurrentChange" :current-page="articles.pageNum"
+ :page-sizes="[10, 20, 50, 100]" :page-size="articles.pageSize"
+ layout="total, sizes, prev, pager, next, jumper" :total="articles.total">
@@ -111,8 +112,10 @@
+ @current-change="handleUserCurrentChange" :current-page="users.pageNum"
+ :page-sizes="[10, 20, 50, 100]"
+ :page-size="users.pageSize" layout="total, sizes, prev, pager, next, jumper"
+ :total="users.total">
@@ -137,9 +140,9 @@
+ @current-change="handleBankAccountCurrentChange" :current-page="bankAccounts.pageNum"
+ :page-sizes="[10, 20, 50, 100]" :page-size="bankAccounts.pageSize"
+ layout="total, sizes, prev, pager, next, jumper" :total="bankAccounts.total">
@@ -181,7 +184,7 @@
diff --git a/pages/admin/tag/post/_tag_id.vue b/pages/admin/tag/post/_tag_id.vue
index f2e2209..e0df7d7 100644
--- a/pages/admin/tag/post/_tag_id.vue
+++ b/pages/admin/tag/post/_tag_id.vue
@@ -136,7 +136,7 @@ export default {
}
return params.tag_id && !isNaN(Number(params.tag_id))
},
- fetch({store, params, error}) {
+ asyncData({store, params, error}) {
return Promise.all([
store.dispatch('tag/fetchPostDetail', params)
.catch(err => error({statusCode: 404}))
diff --git a/pages/article/post/_article_id.vue b/pages/article/post/_article_id.vue
index 12e4c99..eb568ad 100644
--- a/pages/article/post/_article_id.vue
+++ b/pages/article/post/_article_id.vue
@@ -70,8 +70,7 @@
}
return params.article_id && !isNaN(Number(params.article_id))
},
- fetch() {
- let {store, params, error} = this.$nuxt.context
+ asyncData({store, params, error}) {
return Promise.all([
store.dispatch('article/fetchPostDetail', params)
.catch(err => error({statusCode: 404}))
diff --git a/pages/open-data.vue b/pages/open-data.vue
index 8401c8a..a484a28 100644
--- a/pages/open-data.vue
+++ b/pages/open-data.vue
@@ -54,8 +54,7 @@ import gzh from "assets/rymcugzh.jpg";
Vue.prototype.$echarts = echarts;
export default {
name: "openData",
- fetch() {
- let { store, params, error } = this.$nuxt.context
+ asyncData({store, params, error}) {
return Promise.all([
store
.dispatch('open-data/fetchLastThirtyDays', params)
@@ -155,9 +154,7 @@ export default {
},
mounted() {
this.$store.commit("setActiveMenu", "open-data");
- setTimeout(() => {
- this.initLastThirtyDaysCharts(this.lastThirtyDays)
- }, 2000);
+ this.initLastThirtyDaysCharts(this.lastThirtyDays)
}
}
diff --git a/pages/portfolio/post/_portfolio_id.vue b/pages/portfolio/post/_portfolio_id.vue
index a8bcfed..2487c19 100644
--- a/pages/portfolio/post/_portfolio_id.vue
+++ b/pages/portfolio/post/_portfolio_id.vue
@@ -109,7 +109,7 @@ export default {
}
return params.portfolio_id && !isNaN(Number(params.portfolio_id))
},
- fetch({store, params, error}) {
+ asyncData({store, params, error}) {
return Promise.all([
store.dispatch('portfolio/fetchPostDetail', params)
.catch(err => error({statusCode: 404}))