feat: All Pages directory handling

This commit is contained in:
NGPixel
2017-04-23 15:54:35 -04:00
parent f44d0a3c44
commit 0d3e10edda
3 changed files with 25 additions and 5 deletions

View File

@@ -4,6 +4,8 @@ import $ from 'jquery'
import Vue from 'vue'
import _ from 'lodash'
const rootUrl = '/'
module.exports = (alerts, socket) => {
if ($('#page-type-all').length) {
let vueAllPages = new Vue({ // eslint-disable-line no-unused-vars
@@ -29,6 +31,9 @@ module.exports = (alerts, socket) => {
$('#notifload').removeClass('active')
})
})
},
goto: function (entryPath) {
window.location.assign(rootUrl + entryPath)
}
},
mounted: function () {