This commit is contained in:
2019-12-13 11:46:15 +08:00
parent eaf48b86c3
commit 703f411ee7
17 changed files with 2662 additions and 2030 deletions

View File

@ -7,10 +7,10 @@ export const state = () => ({
})
export const mutations = {
increment(state) {
increment (state) {
state.counter++
},
setLeftDatas(state, data) {
setLeftDatas (state, data) {
const NewComments = data[0]
const HotArticle = data[1]
const terms = data[2]
@ -41,7 +41,7 @@ export const mutations = {
}
export const actions = {
async nuxtServerInit({ state, commit }, { $axios }) {
async nuxtServerInit ({ state, commit }, { $axios }) {
if (state.tags.length === 0) {
try {
const datas = await Promise.all([