WXL
2024-07-16 cc73ea5320fed8a39e00bfc0fa02810199559122
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<template>
  <div id="app">
    <router-view />
    <theme-picker />
    <Assistant v-if="routertf" />
  </div>
</template>
 
<script>
import ThemePicker from "@/components/ThemePicker";
 
export default {
  name: "App",
  components: {
    ThemePicker,
    Assistant: () => import("./components/Assistant"), //异步组件加载方式
  },
  data() {
    return {
      routers: this.$route.path.split("/").pop(),
      routertf: true,
    };
  },
  created() {
    this.routertf = this.$route.query.param5;
    console.log(this.routertf, "12");
    // if (
    //   this.routers == "outsideChainxj" ||
    //   this.routers == "outsideChain" ||
    //   this.routers == "outsideChainwt"
    // ) {
    //   this.routertf = false;
    // }
  },
  metaInfo() {
    return {
      title:
        this.$store.state.settings.dynamicTitle &&
        this.$store.state.settings.title,
      titleTemplate: (title) => {
        return title
          ? `${title} - ${process.env.VUE_APP_TITLE}`
          : process.env.VUE_APP_TITLE;
      },
    };
  },
};
</script>
<style scoped>
#app {
  overflow-y: scroll;
  height: 100vh;
  background: #f8fafd;
  /* font-family: "Microsoft YaHei", Arial, Helvetica, sans-serif, "宋体"; */
  font-family: "Hiragino Sans GB";
}
#app .theme-picker {
  display: none;
}
</style>