style: some format adjustments

This commit is contained in:
vben
2020-10-30 21:32:05 +08:00
parent bdce84537a
commit e2333642c4
21 changed files with 73 additions and 164 deletions

View File

@@ -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;

View File

@@ -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() {

View File

@@ -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;
});