Commit ba245ed8 by 黑潮

update: 修改

parent 84ef92ae
......@@ -20,7 +20,7 @@ const state = {
userId: '',
departAuth: 0,
superAdmin: 0,
keepAlive: ''
keepAlive: []
};
// getters
......
......@@ -288,12 +288,19 @@ export default {
const paths = ['/ecm/copy', '/ecm/edit', '/ecm/oncelist', '/ecm/currentlist', '/ecm/batchlist', '/ecm/touch', '/ecm/info'];
const matched = paths.some(el => to.path.indexOf(el) > -1);
if (!matched) {
this.$store.commit('setKeepAlive', '');
this.$store.commit('setKeepAlive', []);
} else {
this.$store.commit('setKeepAlive', 'ecm-list');
this.$store.commit('setKeepAlive', ['ecm-list']);
}
next();
},
activated() {
this.$store.commit('aside_handler', false);
this.$store.commit('mutations_breadcrumb', [
{ name: '营销管理', path: '' },
{ name: '智能营销', path: '/ecm' }
]); // eslint-disable-line
},
created() {
this.setXsxsFlag();
getUseStoredFalg().then(res => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment