123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <template>
- <div class="client-set">
- <div class="page-navs">
- <Button
- :type="curNav.name === nav.name ? 'primary' : 'default'"
- v-for="(nav, index) in navs"
- :key="index"
- @click="switchNav(nav)"
- >{{ nav.title }}</Button
- >
- </div>
- <router-view />
- </div>
- </template>
- <script>
- import { clientSet } from "@/constants/authority";
- import menuMixins from "@/components/homeMenuMixins";
- export default {
- name: "client-set",
- mixins: [menuMixins],
- data() {
- return {
- navs: clientSet,
- curNav: {}
- };
- },
- watch: {
- $route: {
- handler(val) {
- this.actCurNav(val);
- }
- }
- },
- mounted() {
- this.actCurNav(this.$route);
- },
- methods: {}
- };
- </script>
|