Browse Source

Merge branch 'feature-201831-wangcz' into dev

wangcz 6 years ago
parent
commit
a5374834d5
1 changed files with 9 additions and 2 deletions
  1. 9 2
      pages/help/helpList/_id.vue

+ 9 - 2
pages/help/helpList/_id.vue

@@ -1,5 +1,5 @@
 <template>
-  <div>
+  <div v-show="showAlone">
     <help-header></help-header>
   <div id="main">
     <div class="container" style="padding: 0; width: 1190px;">
@@ -48,6 +48,11 @@
   import { left, helpHeader } from '~components/help'
   export default {
     name: 'help',
+    data () {
+      return {
+        showAlone: false
+      }
+    },
     components: {
       left,
       helpHeader
@@ -59,9 +64,11 @@
         store.dispatch('loadHelpTitle', route.params)
       ])
     },
-    mounted () {
+    created () {
       if(this.helpList && this.helpList.length === 1) {
         this.$router.push(`/help/helpDetail/${this.helpList[0].num}`)
+      } else {
+        this.showAlone = true
       }
     },
     computed: {