vue+antd 后台管理框架
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
788 B

import Vue from 'vue'
import App from './App.vue'
import router from './router/lazy'
import './theme/index.less'
import Antd from 'ant-design-vue'
import Viser from 'viser-vue'
6 years ago
import axios from 'axios'
import '@/mock'
import store from './store'
import PouchDB from 'pouchdb'
import 'animate.css/source/animate.css'
import VueI18n from 'vue-i18n'
6 years ago
Vue.prototype.$axios = axios
Vue.config.productionTip = false
Vue.use(Viser)
Vue.use(Antd)
Vue.use(VueI18n)
const i18n = new VueI18n({
locale: 'CN',
fallbackLocale: 'US',
silentFallbackWarn: true
})
new Vue({
router,
store,
i18n,
render: h => h(App),
mounted () {
let db = new PouchDB('adminDb')
db.get('currUser').then(doc => {
this.$store.commit('account/setUser', doc.user)
})
},
}).$mount('#app')