Commit 6021fc96 authored by xuezj's avatar xuezj

支持 同步mq

parent 42da5885
...@@ -137,7 +137,7 @@ export function flushRedis(query) { ...@@ -137,7 +137,7 @@ export function flushRedis(query) {
export function reloadMq(data) { export function reloadMq(data) {
return request({ return request({
url: '/docker/reload_mq', url: '/docker/reload_mq',
method: 'data', method: 'post',
data data
}) })
} }
......
...@@ -48,6 +48,13 @@ const dockersRouter = { ...@@ -48,6 +48,13 @@ const dockersRouter = {
name: 'deploy', name: 'deploy',
meta: { title: '部署应用服务', noCache: true }, meta: { title: '部署应用服务', noCache: true },
hidden: 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 { ...@@ -475,7 +475,9 @@ export default {
}) })
}, },
syncMq() { syncMq() {
alert('同步mq') this.$router.push({
path: `/dockers/syncMq/${this.namespace}`
})
}, },
clearRedis() { clearRedis() {
flushRedis({ namespace: this.namespace }).then(res => { flushRedis({ namespace: this.namespace }).then(res => {
......
...@@ -70,7 +70,9 @@ export default { ...@@ -70,7 +70,9 @@ export default {
}) })
}, },
syncMQ(namespace) { syncMQ(namespace) {
console.log('todo') this.$router.push({
path: `/dockers/syncMq/${namespace}`
})
}, },
deploy(namespace) { deploy(namespace) {
this.$router.push({ 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