mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-24 07:49:47 +08:00
fix(projects): 修复登录页刷新跳404
This commit is contained in:
@ -1,15 +1,27 @@
|
||||
<template>
|
||||
<div class="absolute-lt w-full h-full overflow-hidden">
|
||||
<div class="absolute -right-300px -top-900px">
|
||||
<corner-top />
|
||||
<corner-top :start-color="firstColor" :end-color="secondColor" />
|
||||
</div>
|
||||
<div class="absolute -left-200px -bottom-400px">
|
||||
<corner-bottom />
|
||||
<corner-bottom :start-color="firstColor" :end-color="secondColor" />
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { computed } from 'vue';
|
||||
import { brightenColor, darkenColor } from '@/utils';
|
||||
import { CornerTop, CornerBottom } from './components';
|
||||
|
||||
const props = defineProps({
|
||||
themeColor: {
|
||||
type: String,
|
||||
default: '#409EFF'
|
||||
}
|
||||
});
|
||||
|
||||
const firstColor = computed(() => darkenColor(props.themeColor));
|
||||
const secondColor = computed(() => brightenColor(props.themeColor));
|
||||
</script>
|
||||
<style scoped></style>
|
||||
|
@ -35,7 +35,7 @@ defineProps({
|
||||
},
|
||||
foreground: {
|
||||
type: String,
|
||||
default: '#fefefe00'
|
||||
default: '#fefefe'
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
Reference in New Issue
Block a user