feat(loadingBar): 增加加载条与主题颜色适配

This commit is contained in:
chika committed 2021-07-30 19:26:41 +08:00
1 parent 57245d21ee
commit 85d39add87
5 files changed
+8 -9

No files matched your search

+3
View File
@@ -65,6 +65,7 @@
import { PageFooter } from './components/Footer';
import { useProjectSetting } from '@/hooks/setting/useProjectSetting';
import { useDesignSetting } from '@/hooks/setting/useDesignSetting';
import { useLoadingBar } from "naive-ui";
export default defineComponent({
name: 'Layout',
@@ -135,6 +136,8 @@
onMounted(() => {
window.addEventListener('resize', watchWidth);
//挂载在 window 方便与在js中使用
window['$loading'] = useLoadingBar();
});
return {