|
|
@@ -10,24 +10,17 @@
|
|
|
</template>
|
|
|
|
|
|
<script setup lang="ts">
|
|
|
-import { onMounted, ref } from 'vue';
|
|
|
+import { ref } from 'vue';
|
|
|
import Default from './components/default/Default.vue';
|
|
|
import Show from './components/show/Show.vue';
|
|
|
import { useUserStore } from '@/store/modules/user';
|
|
|
|
|
|
-const userStore = useUserStore();
|
|
|
-// const userInfo: object = userStore.getUserInfo || {};
|
|
|
-
|
|
|
const activeName = ref('default');
|
|
|
|
|
|
+const userStore = useUserStore();
|
|
|
const hasPermisson = () => {
|
|
|
return userStore.checkPermission("question_mock_edit_admin");
|
|
|
};
|
|
|
-
|
|
|
-onMounted(() => {
|
|
|
- hasPermisson();
|
|
|
-})
|
|
|
-
|
|
|
</script>
|
|
|
|
|
|
<style scoped lang="scss">
|
|
|
@@ -79,4 +72,4 @@ onMounted(() => {
|
|
|
.content-box {
|
|
|
flex: 1;
|
|
|
}
|
|
|
-</style>
|
|
|
+</style>
|