页面样式,svg
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
<template>
|
||||
<div class="change-home" v-if="isAdmin">
|
||||
<el-button type="primary" @click="changeHome">
|
||||
<div class="change-home-item" @click="changeHome">
|
||||
<span v-if="home">前往用户页</span>
|
||||
<span v-else>前往管理页</span>
|
||||
</el-button>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<script setup lang="ts">
|
||||
@@ -32,4 +32,5 @@ onMounted(() => {
|
||||
home.value = router.currentRoute.value.path.startsWith('/admin');
|
||||
});
|
||||
</script>
|
||||
<style scoped lang="scss"></style>
|
||||
<style scoped lang="scss">
|
||||
</style>
|
||||
Reference in New Issue
Block a user