index.vue 749 B

123456789101112131415161718192021222324252627282930313233
  1. <template>
  2. <div v-if="billType">
  3. <tongjiSchool v-if="billType == 1"></tongjiSchool>
  4. <defaultPage v-else :sysType="billType"></defaultPage>
  5. </div>
  6. </template>
  7. <script>
  8. import defaultPage from "@/views/wel/home/defaultPage";
  9. import tongjiSchool from "@/views/wel/home/tongjiSchool";
  10. import { getUserInfo } from "@/api/system/user";
  11. import { setStore } from "@/util/store";
  12. export default {
  13. name: "wel",
  14. data() {
  15. return {
  16. billType: ""
  17. };
  18. },
  19. created() {
  20. getUserInfo().then(res => {
  21. this.billType = res.data.data.billType;
  22. localStorage.setItem('sysitemType',this.billType)
  23. });
  24. },
  25. components: {
  26. tongjiSchool,
  27. defaultPage
  28. },
  29. methods: {}
  30. };
  31. </script>
  32. <style lang="scss" scoped></style>