refactor: naive-ui版本升级,naive全局API挂载方式修改

This commit is contained in:
thelostword
2022-10-28 18:15:51 +08:00
parent c0d3e11346
commit c504e61d70
13 changed files with 201 additions and 179 deletions

View File

@@ -77,7 +77,6 @@
import { PageHeader } from './components/Header';
import { useProjectSetting } from '@/hooks/setting/useProjectSetting';
import { useDesignSetting } from '@/hooks/setting/useDesignSetting';
import { useLoadingBar } from 'naive-ui';
import { useRoute } from 'vue-router';
import { useProjectSettingStore } from '@/store/modules/projectSetting';
@@ -185,9 +184,6 @@
onMounted(() => {
checkMobileMode();
window.addEventListener('resize', watchWidth);
//挂载在 window 方便与在js中使用
window['$loading'] = useLoadingBar();
window['$loading'].finish();
});
</script>