¤ñ¹ï·sÀÉ®× |
| | |
| | | <template> |
| | | <!-- <div>record-æ¥çç´é |
| | | <el-tabs |
| | | v-model="activeTabName" |
| | | @tab-click="tabClick" |
| | | > |
| | | <el-tab-pane |
| | | label="åæç´é" |
| | | name="contactRecord" |
| | | > |
| | | </el-tab-pane> |
| | | <el-tab-pane |
| | | label="滿æåº¦ç´é" |
| | | name="reviews" |
| | | ></el-tab-pane> |
| | | </el-tabs> --> |
| | | |
| | | <NuxtChild></NuxtChild> |
| | | <!-- </div> --> |
| | | </template> |
| | | |
| | | <script lang="ts"> |
| | | import { Vue, Component, Watch } from 'vue-property-decorator'; |
| | | import { Route } from 'vue-router/types/router.d'; |
| | | |
| | | @Component |
| | | export default class Record extends Vue { |
| | | activeTabName = 'contactRecord'; |
| | | |
| | | tabClick() { |
| | | this.$router.push('/record/' + this.activeTabName); |
| | | } |
| | | |
| | | @Watch('$route') watchRouter(currentRoute: Route) { |
| | | const pathArray = currentRoute.fullPath.split('/'); |
| | | this.activeTabName = pathArray[pathArray.length - 1]; |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | .el-tabs__item:hover { |
| | | color: #303133; |
| | | } |
| | | </style> |