ql_apimanager_frontend/src/App.vue
南浔 b02c61ecd8 1、新增alert插件
2、新增登录凭证处理逻辑
3、新增AccessToken自动刷新机制
4、新增后台模板页
2025-06-11 23:46:06 +08:00

47 lines
803 B
Vue

<template>
<div id="app" :class="mainClass">
<div class='loader' v-if="isLoading">
<div class='spinner-grow text-primary' role='status'>
<span class='sr-only'>Loading...</span>
</div>
</div>
<router-view/>
</div>
</template>
<script>
import Alert from '@/components/Alert.vue';
import { mapGetters, mapState } from 'vuex';
export default {
data(){
return {
isLoading:true
}
},
computed:{
/**
* 授权页面添加特定类名
* @returns {string}
*/
mainClass(){
const path = this.$route.path
if(path.startsWith('/auth')){
return 'login-page'
}
}
},
mounted(){
this.isLoading = false
}
}
</script>
<style>
#app {
width: 100%;
height:100%;
min-height: 100vh;
}
</style>