Commit 112c31b8 by crushh

update: 优化

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