瀏覽代碼

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 }>,