[refactoring] settings middleware
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
<template lang="pug">
|
||||
el-card
|
||||
|
||||
nuxt-link.float-right(to='/')
|
||||
v-icon(name='times' color='red')
|
||||
el-button(circle icon='el-icon-close' type='danger' size='small' plain)
|
||||
h3 {{$t('common.info')}}
|
||||
|
||||
div(v-html='$t("about")')
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<template lang="pug">
|
||||
<template lang='pug'>
|
||||
#home
|
||||
Nav
|
||||
Home
|
||||
@@ -11,7 +11,7 @@ import Nav from '~/components/Nav.vue'
|
||||
export default {
|
||||
name: 'Index',
|
||||
async fetch ({ store, $axios }) {
|
||||
try {
|
||||
try {
|
||||
const now = new Date()
|
||||
const events = await $axios.$get(`/event/${now.getMonth()}/${now.getFullYear()}`)
|
||||
store.commit('setEvents', events)
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
el-button(circle icon='el-icon-close' type='danger' size='small' plain)
|
||||
h5 {{$t('common.settings')}}
|
||||
el-divider {{$auth.user.email}}
|
||||
|
||||
el-form(action='/api/user' method='PUT' @submit.native.prevent='update_settings' inline label-width='200px')
|
||||
|
||||
el-form-item(:label="$t('settings.change_password')")
|
||||
|
||||
Reference in New Issue
Block a user