ソースを参照

fix the noTitle feature

Olivier Massot 4 年 前
コミット
cc4fce83ef
1 ファイル変更2 行追加3 行削除
  1. 2 3
      pages/structures/index.vue

+ 2 - 3
pages/structures/index.vue

@@ -5,7 +5,7 @@
     <!-- Header -->
     <v-row>
       <v-layout>
-        <h2 v-show="!hideTitle">
+        <h2 v-if="!hideTitle">
           {{ $t("member_companies") }}
         </h2>
         <div class="flex" />
@@ -339,12 +339,11 @@ export default Vue.extend({
     return true
   },
   data () {
-    console.log(this.$route.query)
     return {
       parent: parseInt(this.$route.query.parent as string),
       view: this.$route.query.view ?? 'map',
       theme: this.$route.query.theme ?? 'orange',
-      hideTitle: this.$route.query.hideTitle ?? false,
+      hideTitle: this.$route.query.hideTitle === 'true',
       structures: [] as Array<Structure>,
       filteredStructures: [] as Array<Structure>,
       federations: [] as Array<{ id: number | null, name: string | null }>,