fix history restore
This commit is contained in:
@@ -118,7 +118,7 @@ export const useRequestStore = defineStore('request', () => {
|
||||
// Deep copy
|
||||
const loaded = JSON.parse(JSON.stringify(req));
|
||||
loaded.id = crypto.randomUUID();
|
||||
loaded.response = undefined;
|
||||
// loaded.response = undefined; // Keep response for history viewing
|
||||
|
||||
// Ensure at least one empty row for editing
|
||||
if (loaded.params.length === 0) loaded.params.push({ id: crypto.randomUUID(), key: '', value: '', enabled: true });
|
||||
|
||||
Reference in New Issue
Block a user