Commit 112c31b8 by crushh

update: 优化

parent 09ca6776
......@@ -296,6 +296,7 @@ export default {
mounted() {
const that = this;
that.$emit('showTab', '12');
sessionStorage.setItem('memberGroupSet', 'second');
if (that.brandId && !!that.$route.query.templateId) {
that.getTemplateSet(that.brandId);
}
......
......@@ -185,6 +185,9 @@ export default {
templateList: []
};
},
beforeDestroy() {
sessionStorage.removeItem('memberGroupSet');
},
beforeMount() {
let that = this;
let host = window.location.origin;
......@@ -566,10 +569,11 @@ export default {
that.getGroupClassSet(that.brandId);
that.getSyncDate(that.brandId);
}
if (!!that.$route.query.tabName && that.brandId) {
that.activeName = 'second';
if (that.brandId && sessionStorage.getItem('memberGroupSet') == 'second') {
this.activeName = 'second';
that.getTableList();
}
// this.activeName = sessionStorage.getItem('memberGroupSet') ? sessionStorage.getItem('memberGroupSet') : 'first';
},
components: {}
};
......
......@@ -283,6 +283,7 @@ export default {
mounted() {
const that = this;
that.$emit('showTab', '12');
sessionStorage.setItem('memberGroupSet', 'second');
if (that.brandId) {
that.getTableList(that.brandId);
}
......
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