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

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

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 {