forked from DebaucheryLibrarian/traxxx
Moved SFW mode to server, added HTTP header trigger.
This commit is contained in:
@@ -13,6 +13,10 @@ import Icon from '../components/icon/icon.vue';
|
||||
function init() {
|
||||
const store = initStore(router);
|
||||
|
||||
if (window.env.sfw) {
|
||||
store.dispatch('setSfw', true);
|
||||
}
|
||||
|
||||
Vue.mixin({
|
||||
components: {
|
||||
Icon,
|
||||
|
||||
@@ -84,9 +84,6 @@ const routes = [
|
||||
const router = new VueRouter({
|
||||
mode: 'history',
|
||||
routes,
|
||||
afterEach(to, from) {
|
||||
console.log(to, from);
|
||||
},
|
||||
});
|
||||
|
||||
export default router;
|
||||
|
||||
Reference in New Issue
Block a user