@@ -32,3 +32,10 @@ export function putObj (obj) {
data: obj
})
}
+
+export function refreshObj () {
+ return request({
+ url: '/actuator/refresh',
+ method: 'post',
+ })
+}
@@ -31,7 +31,7 @@
</template>
<script>
import vueJsonEditor from 'vue-json-editor'
- import {fetchList, putObj} from '@/api/admin/route'
+ import {fetchList, putObj,refreshObj} from '@/api/admin/route'
export default {
data() {
@@ -70,11 +70,13 @@
edit() {
putObj(this.json).then(() => {
- this.$notify({
- title: '成功',
- message: '更新成功',
- type: 'success',
- duration: 2000
+ refreshObj().then(() => {
+ this.$notify({
+ title: '成功',
+ message: '更新成功',
+ type: 'success',
+ duration: 2000
@@ -49,11 +49,18 @@ module.exports = {
'^/code': '/code'
},
- '/gen': {
+ '/code': {
+ target: url,
+ ws: true,
+ pathRewrite: {
+ '^/code': '/code'
+ }
+ },
+ '/actuator': {
target: url,
ws: true,
pathRewrite: {
- '^/gen': '/gen'
+ '^/actuator': '/actuator'
'/mp': {