Commit 6021fc96 authored by xuezj's avatar xuezj

支持 同步mq

parent 42da5885
......@@ -137,7 +137,7 @@ export function flushRedis(query) {
export function reloadMq(data) {
return request({
url: '/docker/reload_mq',
method: 'data',
method: 'post',
data
})
}
......
......@@ -48,6 +48,13 @@ const dockersRouter = {
name: 'deploy',
meta: { title: '部署应用服务', noCache: true },
hidden: true
},
{
path: 'syncMq/:name',
component: () => import('@/views/docker/syncMq'),
name: 'syncMq',
meta: { title: '同步MQ', noCache: true },
hidden: true
}
]
}
......
......@@ -475,7 +475,9 @@ export default {
})
},
syncMq() {
alert('同步mq')
this.$router.push({
path: `/dockers/syncMq/${this.namespace}`
})
},
clearRedis() {
flushRedis({ namespace: this.namespace }).then(res => {
......
......@@ -70,7 +70,9 @@ export default {
})
},
syncMQ(namespace) {
console.log('todo')
this.$router.push({
path: `/dockers/syncMq/${namespace}`
})
},
deploy(namespace) {
this.$router.push({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment