feat: 图生图功能
feat: 参考图片(图生图)选择器 ui: 文件上传(预留) composable ui: 登录过期提示 ui: 调整部分 ui
This commit is contained in:
17
app.vue
17
app.vue
@@ -1,8 +1,23 @@
|
||||
<script setup lang="ts">
|
||||
import ModalAuthentication from '~/components/ModalAuthentication.vue';
|
||||
|
||||
const toast = useToast()
|
||||
const router = useRouter()
|
||||
const modal = useModal()
|
||||
const loginState = useLoginState()
|
||||
|
||||
onMounted(() => {
|
||||
loginState.checkSession()
|
||||
loginState.checkSession().then(res => {
|
||||
if (!res) {
|
||||
toast.add({
|
||||
title: '登录失效',
|
||||
description: '登录已过期,请重新登录',
|
||||
color: 'red',
|
||||
icon: 'i-tabler-alert-triangle',
|
||||
})
|
||||
modal.open(ModalAuthentication)
|
||||
}
|
||||
})
|
||||
})
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user