111
This commit is contained in:
13
Web/src/components/Abar.vue
Normal file
13
Web/src/components/Abar.vue
Normal file
@@ -0,0 +1,13 @@
|
||||
<template>
|
||||
<router-link :to="url" :class="_class" >
|
||||
<slot></slot>
|
||||
</router-link>
|
||||
</template>
|
||||
<script setup>
|
||||
// 1. 定义接收父组件传来的参数 props
|
||||
const props = defineProps({
|
||||
// 字段名、类型、默认值
|
||||
url: String,
|
||||
_class:String,
|
||||
})
|
||||
</script>
|
||||
@@ -1,5 +1,8 @@
|
||||
<template>
|
||||
<slot />
|
||||
<div class="footer">
|
||||
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
<template>
|
||||
<div class="layout-empty">
|
||||
<slot />
|
||||
</div>
|
||||
<template>
|
||||
<slot />
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
@@ -9,9 +7,5 @@
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.layout-empty {
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
</style>
|
||||
@@ -4,7 +4,7 @@
|
||||
【驰骋四海·社区版】
|
||||
</div>
|
||||
<div>
|
||||
|
||||
|
||||
✧当前在线<strong> 139 </strong>位玩家在驰骋四海✧
|
||||
</div>
|
||||
<div class="content" style="font-size:17px">
|
||||
@@ -85,6 +85,9 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
|
||||
definePageMeta({
|
||||
layout: layout.empty
|
||||
})
|
||||
showNotify({ message: '提示' });
|
||||
// await navigateTo('/auth/login', { replace: true })
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user