...
|
...
|
@@ -26,6 +26,7 @@ export default function() { |
|
|
},
|
|
|
historys: [],
|
|
|
direction: 'forword',
|
|
|
ssrLoad: true, // 是否是ssr直出的页面
|
|
|
},
|
|
|
mutations: {
|
|
|
[Types.SET_ENV](state, {context}) {
|
...
|
...
|
@@ -39,6 +40,7 @@ export default function() { |
|
|
state.context.title = title;
|
|
|
},
|
|
|
[Types.ROUTE_CHANGE](state, {to, from}) {
|
|
|
state.ssrLoad = false;
|
|
|
if (!state.historys.length) {
|
|
|
state.historys.push({
|
|
|
name: from.name,
|
...
|
...
|
|