| 123456789101112131415161718192021222324252627282930313233343536373839 |
- <template>
- <div id="app">
- <router-view></router-view>
- <custom-service v-show="!doBotNeedCustomerService.includes(path)"></custom-service>
- </div>
- </template>
-
- <script>
- import CustomService from "@components/CustomService.vue";
-
- // @ is an alias to /src
- export default {
- name: "Home",
- components: { CustomService },
- computed: {},
- watch: {
- $route(to, from) {
- this.path = to.path;
- },
- },
- data() {
- return {
- doBotNeedCustomerService: ["/login"], // 不需要引用客服的页面
- path: "",
- };
- },
- created() {
- this.$store.dispatch("getUserInfo");
- this.$store.dispatch("getAllPickListByEntity");
- this.path = this.$route.path;
- },
- methods: {},
- };
- </script>
- <style lang="scss" scoped>
- #app {
- position: relative;
- }
- </style>
|