mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-08-28 12:54:22 +08:00
style: some format adjustments
This commit is contained in:
@@ -23,12 +23,14 @@
|
||||
},
|
||||
},
|
||||
setup(props) {
|
||||
const showRef = ref<boolean>(!!props.showTitle);
|
||||
const { globSetting } = useSetting();
|
||||
const go = useGo();
|
||||
|
||||
function handleGoHome() {
|
||||
go(PageEnum.BASE_HOME);
|
||||
}
|
||||
const showRef = ref<boolean>(!!props.showTitle);
|
||||
|
||||
watch(
|
||||
() => props.showTitle,
|
||||
(show: boolean) => {
|
||||
@@ -41,6 +43,7 @@
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
return {
|
||||
handleGoHome,
|
||||
globSetting,
|
||||
@@ -55,7 +58,6 @@
|
||||
|
||||
.app-logo {
|
||||
display: flex;
|
||||
// justify-content: center;
|
||||
align-items: center;
|
||||
cursor: pointer;
|
||||
|
||||
|
@@ -1,11 +1,12 @@
|
||||
import type { AppRouteRecordRaw } from '/@/router/types';
|
||||
|
||||
import { computed, toRaw, unref } from 'vue';
|
||||
import { useRouter } from 'vue-router';
|
||||
import router from '/@/router';
|
||||
|
||||
import { tabStore } from '/@/store/modules/tab';
|
||||
import { appStore } from '/@/store/modules/app';
|
||||
|
||||
import { AppRouteRecordRaw } from '/@/router/types';
|
||||
import { useRouter } from 'vue-router';
|
||||
import router from '/@/router';
|
||||
import { unique } from '/@/utils';
|
||||
|
||||
export function useFrameKeepAlive() {
|
||||
|
@@ -1,19 +1,17 @@
|
||||
import { computed, defineComponent, unref, Transition, KeepAlive, toRaw } from 'vue';
|
||||
|
||||
import { appStore } from '/@/store/modules/app';
|
||||
|
||||
import { useTransition } from './useTransition';
|
||||
|
||||
import { RouterView, RouteLocation } from 'vue-router';
|
||||
import { tabStore } from '/@/store/modules/tab';
|
||||
|
||||
import FrameLayout from '/@/layouts/iframe/index.vue';
|
||||
|
||||
import { useTransition } from './useTransition';
|
||||
import { useSetting } from '/@/hooks/core/useSetting';
|
||||
// import { useRouter } from 'vue-router';
|
||||
|
||||
import { tabStore } from '/@/store/modules/tab';
|
||||
import { appStore } from '/@/store/modules/app';
|
||||
|
||||
export default defineComponent({
|
||||
name: 'PageLayout',
|
||||
setup() {
|
||||
// const { currentRoute } = useRouter();
|
||||
const getProjectConfigRef = computed(() => {
|
||||
return appStore.getProjectConfig;
|
||||
});
|
||||
|
Reference in New Issue
Block a user