7/10 缴费分析,人员分析 数据对接
This commit is contained in:
@@ -22,7 +22,7 @@ import SideBar from './components/Sidebar/index.vue';
|
||||
import { AppMain, Navbar, Settings } from './components';
|
||||
import { useAppStore } from '@/store/modules/app';
|
||||
import { useSettingsStore } from '@/store/modules/settings';
|
||||
import { NavTypeEnum } from '@/enums/NavTypeEnum';
|
||||
// import { NavTypeEnum } from '@/enums/NavTypeEnum';
|
||||
import { initWebSocket } from '@/utils/websocket';
|
||||
import { initSSE } from '@/utils/sse';
|
||||
|
||||
@@ -75,13 +75,13 @@ const theme = computed(() => settingsStore.theme);
|
||||
const sidebar = computed(() => useAppStore().sidebar);
|
||||
const device = computed(() => useAppStore().device);
|
||||
const needTagsView = computed(() => settingsStore.tagsView);
|
||||
const fixedHeader = computed(() => settingsStore.fixedHeader);
|
||||
const layout = computed(() => settingsStore.navType);
|
||||
// const fixedHeader = computed(() => settingsStore.fixedHeader);
|
||||
// const layout = computed(() => settingsStore.navType);
|
||||
|
||||
const showSidebar = computed(() => {
|
||||
if (sidebar.value.hide) return false;
|
||||
return layout.value === NavTypeEnum.LEFT || layout.value === NavTypeEnum.MIX;
|
||||
});
|
||||
// const showSidebar = computed(() => {
|
||||
// if (sidebar.value.hide) return false;
|
||||
// return layout.value === NavTypeEnum.LEFT || layout.value === NavTypeEnum.MIX;
|
||||
// });
|
||||
|
||||
const classObj = computed(() => ({
|
||||
hideSidebar: !sidebar.value.opened,
|
||||
@@ -108,9 +108,9 @@ watchEffect(() => {
|
||||
const navbarRef = ref<InstanceType<typeof Navbar>>();
|
||||
const settingRef = ref<InstanceType<typeof Settings>>();
|
||||
|
||||
const handleClickOutside = () => {
|
||||
useAppStore().closeSideBar({ withoutAnimation: false });
|
||||
};
|
||||
// const handleClickOutside = () => {
|
||||
// useAppStore().closeSideBar({ withoutAnimation: false });
|
||||
// };
|
||||
|
||||
const setLayout = () => {
|
||||
settingRef.value?.openSetting();
|
||||
@@ -120,7 +120,7 @@ const setLayout = () => {
|
||||
<style lang="scss" scoped>
|
||||
@use '@/assets/styles/mixin.scss';
|
||||
@use '@/assets/styles/variables.module.scss' as *;
|
||||
|
||||
//8^▐╬╬2╬╬>╘
|
||||
.app-wrapper {
|
||||
@include mixin.clearfix;
|
||||
position: relative;
|
||||
|
||||
Reference in New Issue
Block a user