|
@@ -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: {
|