fix(projects): 修复登录页刷新跳404

This commit is contained in:
Soybean
2021-10-20 16:38:43 +08:00
parent 3edf46eb52
commit 358d4e8a19
15 changed files with 54 additions and 51 deletions

View File

@ -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>

View File

@ -35,7 +35,7 @@ defineProps({
},
foreground: {
type: String,
default: '#fefefe00'
default: '#fefefe'
}
});
</script>