mirror of https://github.com/halo-dev/halo
Refactor router.config.js
parent
0d6e3572c7
commit
e283228726
|
@ -6,7 +6,7 @@
|
|||
<div class="main" v-if="!$route.meta.hiddenHeaderContent">
|
||||
<div class="row">
|
||||
<img v-if="logo" :src="logo" class="logo"/>
|
||||
<h1 v-if="title" class="title">{{ title }}</h1>
|
||||
<!-- <h1 v-if="title" class="title">{{ title }}</h1> -->
|
||||
<div class="action">
|
||||
<slot name="action"></slot>
|
||||
</div>
|
||||
|
|
|
@ -97,7 +97,7 @@ export const asyncRouterMap = [
|
|||
{
|
||||
path: '/interface',
|
||||
name: 'Interface',
|
||||
component: PageView,
|
||||
component: RouteView,
|
||||
redirect: '/interface/themes',
|
||||
meta: { title: '外观', icon: 'skin' },
|
||||
children: [
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<template>
|
||||
<div class="page-header-index-wide">
|
||||
<page-view>
|
||||
<a-row :gutter="12">
|
||||
<a-col
|
||||
:xl="10"
|
||||
|
@ -67,10 +67,11 @@
|
|||
</a-card>
|
||||
</a-col>
|
||||
</a-row>
|
||||
</div>
|
||||
</page-view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { PageView } from '@/layouts'
|
||||
import { Ellipsis } from '@/components'
|
||||
import menuApi from '@/api/menu'
|
||||
const columns = [
|
||||
|
@ -99,6 +100,7 @@ const columns = [
|
|||
]
|
||||
export default {
|
||||
components: {
|
||||
PageView,
|
||||
Ellipsis
|
||||
},
|
||||
data() {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<template>
|
||||
<div class="page-header-index-wide">
|
||||
<page-view>
|
||||
<a-row :gutter="12">
|
||||
<a-col
|
||||
:xl="18"
|
||||
|
@ -31,15 +31,17 @@
|
|||
</a-card>
|
||||
</a-col>
|
||||
</a-row>
|
||||
</div>
|
||||
</page-view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import themeApi from '@/api/theme'
|
||||
import ThemeFile from './components/ThemeFile'
|
||||
import { codemirror } from 'vue-codemirror-lite'
|
||||
import { PageView } from '@/layouts'
|
||||
export default {
|
||||
components: {
|
||||
PageView,
|
||||
codemirror,
|
||||
ThemeFile
|
||||
},
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<template>
|
||||
<div class="page-header-index-wide">
|
||||
<page-view>
|
||||
<a-row :gutter="12" type="flex" align="middle">
|
||||
<a-col
|
||||
class="theme-item"
|
||||
|
@ -113,13 +113,17 @@
|
|||
</a-col>
|
||||
</a-row>
|
||||
</a-drawer>
|
||||
</div>
|
||||
</page-view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { PageView } from '@/layouts'
|
||||
import themeApi from '@/api/theme'
|
||||
|
||||
export default {
|
||||
components: {
|
||||
PageView
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
wrapperCol: {
|
||||
|
|
Loading…
Reference in New Issue