|
@@ -31,7 +31,7 @@
|
|
</template>
|
|
</template>
|
|
<script>
|
|
<script>
|
|
import vueJsonEditor from 'vue-json-editor'
|
|
import vueJsonEditor from 'vue-json-editor'
|
|
- import {fetchList, putObj} from '@/api/admin/route'
|
|
|
|
|
|
+ import {fetchList, putObj,refreshObj} from '@/api/admin/route'
|
|
|
|
|
|
export default {
|
|
export default {
|
|
data() {
|
|
data() {
|
|
@@ -70,11 +70,13 @@
|
|
|
|
|
|
edit() {
|
|
edit() {
|
|
putObj(this.json).then(() => {
|
|
putObj(this.json).then(() => {
|
|
- this.$notify({
|
|
|
|
- title: '成功',
|
|
|
|
- message: '更新成功',
|
|
|
|
- type: 'success',
|
|
|
|
- duration: 2000
|
|
|
|
|
|
+ refreshObj().then(() => {
|
|
|
|
+ this.$notify({
|
|
|
|
+ title: '成功',
|
|
|
|
+ message: '更新成功',
|
|
|
|
+ type: 'success',
|
|
|
|
+ duration: 2000
|
|
|
|
+ })
|
|
})
|
|
})
|
|
})
|
|
})
|
|
}
|
|
}
|