feat: 新增加载动画

This commit is contained in:
duanshuwen
2025-12-19 22:48:28 +08:00
parent 0d6ffdef83
commit 4b4e955b17
11 changed files with 59 additions and 51 deletions

View File

@@ -22,12 +22,10 @@ const components: Plugin = (app) => {
// 创建 Vue 应用实例
const app = createApp(App);
const pinia = createPinia();
// 使用 Pinia 状态管理
app.use(createPinia());
// 使用 Vue Router
app.use(pinia);
app.use(router);
app.use(ElementPlus, { locale })
app.use(components)

View File

@@ -19,7 +19,7 @@ const routes = [
const router = createRouter({
history: createMemoryHistory(),
routes,
scrollBehavior(to: any, from: any, savedPosition: any) {
scrollBehavior(_to: any, _from: any, savedPosition: any) {
if (savedPosition) {
return savedPosition
}

View File

@@ -1,16 +0,0 @@
import '@renderer/styles/index.css'
import errorHandler from '@utils/errorHandler'
import i18n from '@renderer/i18n'
import HeaderBar from '@renderer/components/HeaderBar/index.vue'
import DragRegion from '@renderer/components/DragRegion/index.vue'
import Loading from './index.vue'
createApp(Loading)
.use(i18n)
.use(createPinia())
.use(errorHandler)
.component('HeaderBar', HeaderBar)
.component('DragRegion', DragRegion)
.mount('#app')

View File

@@ -1,5 +0,0 @@
<template></template>
<script setup lang="ts">
</script>