代码优化

This commit is contained in:
dqjdda
2019-08-27 17:17:16 +08:00
parent b0830fba37
commit 2ae1739bff
4 changed files with 4 additions and 7 deletions

View File

@@ -80,6 +80,7 @@ import initData from '@/mixins/initData'
import { update, get } from '@/api/genConfig'
import { generator } from '@/api/generator'
export default {
name: 'Generator',
mixins: [initData],
props: {
name: {

View File

@@ -43,7 +43,7 @@ import initData from '@/mixins/initData'
import { parseTime } from '@/utils/index'
import Generator from './generator'
export default {
name: 'Generator',
name: 'GeneratorIndex',
components: { Generator },
mixins: [initData],
data() {

View File

@@ -1,7 +1,5 @@
<template >
<div style="padding:30px;">
<el-alert :closable="false" title="三级菜单1" type="success">
<router-view />
</el-alert>
<el-alert :closable="false" title="三级菜单1" type="success"/>
</div>
</template>

View File

@@ -1,7 +1,5 @@
<template>
<div style="padding:30px;">
<el-alert :closable="false" title="三级菜单2" type="success">
<router-view />
</el-alert>
<el-alert :closable="false" title="三级菜单2" type="success"/>
</div>
</template>