mirror of
https://github.com/alibaba/canal.git
synced 2026-11-04 00:30:15 +08:00
modify
This commit is contained in:
@@ -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, {
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<el-form-item>
|
||||
canal.properties
|
||||
<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" />
|
||||
|
||||
Reference in New Issue
Block a user