|
|
|
@ -3,6 +3,7 @@ import { isDark } from '@/utils/is'
|
|
|
|
import { useAppStore } from '@/store/modules/app'
|
|
|
|
import { useAppStore } from '@/store/modules/app'
|
|
|
|
import { useDesign } from '@/hooks/web/useDesign'
|
|
|
|
import { useDesign } from '@/hooks/web/useDesign'
|
|
|
|
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
|
|
|
|
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
|
|
|
|
|
|
|
|
import routerSearch from '@/components/RouterSearch/index.vue'
|
|
|
|
|
|
|
|
|
|
|
|
const { getPrefixCls } = useDesign()
|
|
|
|
const { getPrefixCls } = useDesign()
|
|
|
|
const prefixCls = getPrefixCls('app')
|
|
|
|
const prefixCls = getPrefixCls('app')
|
|
|
|
@ -24,10 +25,12 @@ setDefaultTheme()
|
|
|
|
<template>
|
|
|
|
<template>
|
|
|
|
<ConfigGlobal :size="currentSize">
|
|
|
|
<ConfigGlobal :size="currentSize">
|
|
|
|
<RouterView :class="greyMode ? `${prefixCls}-grey-mode` : ''" />
|
|
|
|
<RouterView :class="greyMode ? `${prefixCls}-grey-mode` : ''" />
|
|
|
|
|
|
|
|
<routerSearch />
|
|
|
|
</ConfigGlobal>
|
|
|
|
</ConfigGlobal>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<style lang="scss">
|
|
|
|
<style lang="scss">
|
|
|
|
$prefix-cls: #{$namespace}-app;
|
|
|
|
$prefix-cls: #{$namespace}-app;
|
|
|
|
|
|
|
|
|
|
|
|
.size {
|
|
|
|
.size {
|
|
|
|
width: 100%;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
height: 100%;
|
|
|
|
|