This commit is contained in:
mcy
2019-07-11 15:07:57 +08:00
parent 317439670c
commit 50ea6870dc
14 changed files with 327 additions and 16 deletions

View File

@@ -23,10 +23,10 @@ import '@/permission' // permission control
* Currently MockJs will be used in the production environment,
* please remove it before going online! ! !
*/
import { mockXHR } from '../mock'
if (process.env.NODE_ENV === 'production') {
mockXHR()
}
// import { mockXHR } from '../mock'
// if (process.env.NODE_ENV === 'production') {
// mockXHR()
// }
// set ElementUI lang to EN
Vue.use(ElementUI, {

View File

@@ -55,6 +55,28 @@ export const constantRoutes = [
}]
},
{
path: '/canalServer',
component: Layout,
redirect: '/canalServer/config',
name: 'Canal Server',
meta: { title: 'Canal Server', icon: 'example' },
children: [
{
path: 'canalServer',
name: 'Canal主配置',
component: () => import('@/views/canalServer/config'),
meta: { title: 'Canal主配置', icon: 'form' }
},
{
path: 'tree',
name: 'Tree',
component: () => import('@/views/tree/index'),
meta: { title: 'Tree', icon: 'tree' }
}
]
},
{
path: '/example',
component: Layout,

View File

@@ -1,16 +1,16 @@
module.exports = {
title: 'Vue Admin Template',
title: 'Canal Admin',
/**
* @type {boolean} true | false
* @description Whether fix the header
*/
fixedHeader: false,
fixedHeader: true,
/**
* @type {boolean} true | false
* @description Whether show the logo in sidebar
*/
sidebarLogo: false
sidebarLogo: true
}

View File

@@ -7,7 +7,7 @@ import { getToken } from '@/utils/auth'
const service = axios.create({
baseURL: process.env.VUE_APP_BASE_API, // url = base url + request url
// withCredentials: true, // send cookies when cross-domain requests
timeout: 5000 // request timeout
timeout: 60000 // request timeout
})
// request interceptor

View File

@@ -5,7 +5,7 @@
<el-form-item>
canal.properties&nbsp;&nbsp;&nbsp;&nbsp;
<el-button type="primary" @click="onSubmit">修改</el-button>
<el-button @click="onCancel">取消</el-button>
<el-button @click="onCancel">返回</el-button>
</el-form-item>
</div>
<editor v-model="content" lang="yaml" theme="chrome" width="100%" :height="800" @init="editorInit" />