You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
dianshang-qianduan/src/views/index.vue

19 lines
478 B
Vue

5 years ago
<template>
2 months ago
<div class="index">
<student v-if="role == '4'" />
<teacher v-else />
5 years ago
</div>
</template>
<script setup>
2 months ago
import student from "./student/index.vue";
import teacher from "./teacherEnd/index.vue";
import useUserStore from "@/store/modules/user";
import { computed } from "vue";
const userStore = useUserStore();
const role = computed(() => userStore.userInfo.roleId);
5 years ago
</script>
2 months ago
<style lang='scss' scoped>
.index {
margin: 10px;
5 years ago
}
2 months ago
</style>