app.js 357 B

12345678910111213141516171819
  1. import 'babel-polyfill'
  2. import Vue from 'vue'
  3. import App from './components/App.vue'
  4. import store from './store'
  5. import { getAllMessages } from './store/actions'
  6. Vue.config.debug = true
  7. Vue.filter('time', timestamp => {
  8. return new Date(timestamp).toLocaleTimeString()
  9. })
  10. new Vue({
  11. el: '#app',
  12. store,
  13. render: h => h(App)
  14. })
  15. getAllMessages(store)