Skip to content

Commit 4573107

Browse files
committed
fix: #47 修复数据丢失问题
1 parent 8afbe9d commit 4573107

File tree

1 file changed

+4
-2
lines changed
  • packages/vue-panels/src/views/interceptor

1 file changed

+4
-2
lines changed

packages/vue-panels/src/views/interceptor/table.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,9 +218,11 @@ export default {
218218
this.modifyNotice(routes);
219219
this.initList(routes);
220220
},
221-
putData(row) {
221+
async putData(row) {
222222
this.tableData.push(row);
223-
this.modifyNotice(this.tableData);
223+
const routes = await useInterceptorRoutes.getReal();
224+
routes.push(row);
225+
this.modifyNotice(routes);
224226
},
225227
async editData(row) {
226228
const routes = await useInterceptorRoutes.getReal();

0 commit comments

Comments
 (0)