抽离 Copyright 组件为内建组件

This commit is contained in:
Hooray
2025-02-20 01:48:17 +08:00
parent d4e6c65247
commit be51be6715
4 changed files with 4 additions and 5 deletions
+1 -2
View File
@@ -6,7 +6,6 @@ import useSettingsStore from '@/store/modules/settings'
import eventBus from '@/utils/eventBus'
import hotkeys from 'hotkeys-js'
import AppSetting from './components/AppSetting/index.vue'
import Copyright from './components/Copyright/index.vue'
import Header from './components/Header/index.vue'
import HotkeysIntro from './components/HotkeysIntro/index.vue'
import MainSidebar from './components/MainSidebar/index.vue'
@@ -141,7 +140,7 @@ const enableAppSetting = import.meta.env.VITE_APP_SETTING
</RouterView>
<LinkView v-if="isLink" />
</div>
<Copyright />
<FaCopyright />
</div>
</div>
</div>
+1
View File
@@ -14,6 +14,7 @@ declare module 'vue' {
FaCard: typeof import('./../ui/components/FaCard/index.vue')['default']
FaCheckbox: typeof import('./../ui/components/FaCheckbox/index.vue')['default']
FaContextMenu: typeof import('./../ui/components/FaContextMenu/index.vue')['default']
FaCopyright: typeof import('./../ui/components/FaCopyright/index.vue')['default']
FaDivider: typeof import('./../ui/components/FaDivider/index.vue')['default']
FaDrawer: typeof import('./../ui/components/FaDrawer/index.vue')['default']
FaDropdown: typeof import('./../ui/components/FaDropdown/index.vue')['default']
@@ -2,7 +2,7 @@
import useSettingsStore from '@/store/modules/settings'
defineOptions({
name: 'Copyright',
name: 'FaCopyright',
})
const settingsStore = useSettingsStore()
+1 -2
View File
@@ -9,7 +9,6 @@ meta:
import LoginForm from '@/components/AccountForm/LoginForm.vue'
import RegisterForm from '@/components/AccountForm/RegisterForm.vue'
import ResetPasswordForm from '@/components/AccountForm/ResetPasswordForm.vue'
import Copyright from '@/layouts/components/Copyright/index.vue'
import ColorScheme from '@/layouts/components/Topbar/Toolbar/ColorScheme/index.vue'
import useSettingsStore from '@/store/modules/settings'
@@ -61,7 +60,7 @@ const formType = ref<'login' | 'register' | 'resetPassword'>('login')
</Transition>
</div>
</div>
<Copyright />
<FaCopyright />
</template>
<style scoped>