|
@@ -116,24 +116,30 @@ export default {
|
|
];
|
|
];
|
|
this.menuCollapse = JSON.parse(localStorage.getItem("menuCollapse"));
|
|
this.menuCollapse = JSON.parse(localStorage.getItem("menuCollapse"));
|
|
/* 筛选菜单 */
|
|
/* 筛选菜单 */
|
|
- // var target = this.$route.query.target
|
|
|
|
- // if(target) {
|
|
|
|
- // localStorage.setItem("target", target)
|
|
|
|
- // } else {
|
|
|
|
- // target = localStorage.getItem('target')
|
|
|
|
- // }
|
|
|
|
- // this.filterMenu(target);
|
|
|
|
|
|
+ var target = this.$route.query.target
|
|
|
|
+ if(target) {
|
|
|
|
+ localStorage.setItem("target", target)
|
|
|
|
+ } else {
|
|
|
|
+ target = localStorage.getItem('target')
|
|
|
|
+ }
|
|
|
|
+ this.filterMenu(target);
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|
|
- // "$route.query.target"(v) {
|
|
|
|
- // if(v){
|
|
|
|
- // localStorage.setItem("target", v)
|
|
|
|
- // this.filterMenu(v);
|
|
|
|
- // }
|
|
|
|
- // }
|
|
|
|
|
|
+ "$route.query.target"(v) {
|
|
|
|
+ if(v){
|
|
|
|
+ localStorage.setItem("target", v)
|
|
|
|
+ this.filterMenu(v);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
- /* 筛选菜单 */
|
|
|
|
|
|
+ /*
|
|
|
|
+ http://hzsheep.ifarmcloud.com/butcher/#/home?target=定点屠宰智能管控
|
|
|
|
+ http://hzsheep.ifarmcloud.com/butcher/#/home?target=产品制作智能监控
|
|
|
|
+ http://hzsheep.ifarmcloud.com/butcher/#/home?target=鲜肉储运智能管控
|
|
|
|
+ http://hzsheep.ifarmcloud.com/yield
|
|
|
|
+ */
|
|
|
|
+ /* 筛选菜单 http://hzsheep.ifarmcloud.com/butcher/#/home?target=定点屠宰智能管控 */
|
|
/* http://localhost:8080/#/home?target=定点屠宰智能管控 */
|
|
/* http://localhost:8080/#/home?target=定点屠宰智能管控 */
|
|
/* http://localhost:8080/#/home?target=产品制作智能监控 */
|
|
/* http://localhost:8080/#/home?target=产品制作智能监控 */
|
|
/* http://localhost:8080/#/home?target=鲜肉储运智能管控 */
|
|
/* http://localhost:8080/#/home?target=鲜肉储运智能管控 */
|