添加请求内容~

This commit is contained in:
闵宪瑞 2025-01-07 23:53:49 +08:00
parent 6975f57095
commit f9df5edd7c
3 changed files with 18 additions and 10 deletions

14
src/layouts/front.vue Normal file
View File

@ -0,0 +1,14 @@
<template>
<Navigation />
<div class="w-screen flex flex-col items-center justify-center">
<router-view v-slot="{ Component }">
<transition name="fade" mode="out-in">
<component :is="Component" />
</transition>
</router-view>
</div>
</template>
<style>
</style>

View File

@ -5,20 +5,15 @@
</div> </div>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import {userInfoFront } from '~/api/user/frontUserApi'
import { loginAdmin } from '~/api/user/adminUserApi'
const state = reactive({ const state = reactive({
captchaUrl: '', captchaUrl: '',
loginFrom: {} loginFrom: {}
}) })
const login = reactive({ username: '', password: '', captcha: '', uuid: '' }) const login = reactive({ username: '18796357645', password: '18796357645', captcha: '', uuid: '' })
function init() { function init() {
state.captchaUrl = getCaptchaUrl().captchaUrl
login.uuid = getCaptchaUrl().uid
loginAdmin(login.uuid,login.username,login.password,login.captcha)
} }
init() init()

View File

@ -12,15 +12,14 @@ html.dark {
pointer-events: none; pointer-events: none;
} }
/*进度条配色*/
#nprogress .bar { #nprogress .bar {
@apply bg-blue-700 bg-opacity-75; @apply bg-blue-700 bg-opacity-75;
background: repeating-linear-gradient(90deg, #00dc82 0, #34cdfe 50%, #0047e1); background: repeating-linear-gradient(90deg, #00dc82 0, #34cdfe 50%, #0047e1);
position: fixed; position: fixed;
z-index: 1031; z-index: 1031;
top: 0; top: 0;
left: 0; left: 0;
width: 100%; width: 100%;
height: 2px; height: 2px;
} }