Hint: you can also use the ← and → arrow keys to navigate.
@@ -35,20 +35,17 @@ export default { view: 'view' }), methods: { - toggle () { - if (this.test === '1111') { - this.test = '2222' - } else { - this.test = '1111' - } - }, goRight: function () { - console.log('there') this.incViewIndex() this.$router.push({ path: `/${this.view.names[this.view.index]}` }) }, + goAbout: function () { + this.$router.push({ + path: `/about` + }) + }, ...mapActions([ 'incViewIndex', 'newMessage', diff --git a/app/src/renderer/vuex/modules/menu.js b/app/src/renderer/vuex/modules/menu.js index b3dc6a6..0750682 100644 --- a/app/src/renderer/vuex/modules/menu.js +++ b/app/src/renderer/vuex/modules/menu.js @@ -12,7 +12,7 @@ const state = { path: '/network', meta: { icon: 'fa-info', - link: 'network/index.vue' + link: 'network/Index.vue' }, component: require('../../views/network') }, diff --git a/app/src/renderer/vuex/modules/sniffer.js b/app/src/renderer/vuex/modules/sniffer.js index ec95858..ea99cc3 100644 --- a/app/src/renderer/vuex/modules/sniffer.js +++ b/app/src/renderer/vuex/modules/sniffer.js @@ -17,7 +17,6 @@ const actions = { commit(types.NEW_PACKET, packet) }, clearPackets ({ commit, state }) { - console.log('here') commit(types.CLEAR_PACKETS) }, startSniffer ({ commit, state }) { diff --git a/webpack.renderer.config.js b/webpack.renderer.config.js index 6acbb68..775b094 100644 --- a/webpack.renderer.config.js +++ b/webpack.renderer.config.js @@ -85,7 +85,7 @@ let rendererConfig = { template: './app/index.ejs', appModules: process.env.NODE_ENV !== 'production' ? path.resolve(__dirname, 'app/node_modules') - : false, + : false }), new webpack.NoEmitOnErrorsPlugin() ], @@ -150,4 +150,4 @@ if (process.env.NODE_ENV === 'production') { ) } -module.exports = rendererConfig \ No newline at end of file +module.exports = rendererConfig