Browse Source

修改社区查询显示异常问题

shibei_master
dai 4 years ago
parent
commit
f42f76f1b3
  1. 3
      src/views/main.vue
  2. 12
      src/views/modules/shequ/index.vue

3
src/views/main.vue

@ -65,6 +65,9 @@ export default {
$route: "routeHandle", $route: "routeHandle",
}, },
async created() { async created() {
this.$store.state.sidebarMenuList = window.SITE_CONFIG["menuList"];
console.log(this.$store.state.sidebarMenuList);
this.windowResizeHandle(); this.windowResizeHandle();
this.routeHandle(this.$route); this.routeHandle(this.$route);
Promise.all([this.getWorkUserInfo()]).then(() => { Promise.all([this.getWorkUserInfo()]).then(() => {

12
src/views/modules/shequ/index.vue

@ -355,7 +355,13 @@
</div> </div>
<!-- 修改弹出框 --> <!-- 修改弹出框 -->
<div v-show="showedFuncPanel"> <div
v-show="showedFuncPanel"
v-if="
Array.isArray($store.state.sidebarMenuList) &&
$store.state.sidebarMenuList.length > 0
"
>
<div class="m-panel"> <div class="m-panel">
<div <div
class="m-list" class="m-list"
@ -711,6 +717,10 @@ export default {
}, },
mounted() { mounted() {
this.getApiData(); this.getApiData();
console.log(
"dynamicMenuRoutes----------------------------",
this.$store.state.sidebarMenuList
);
}, },
methods: { methods: {
computedWidth(label) { computedWidth(label) {

Loading…
Cancel
Save