fix import process reset

This commit is contained in:
Cyberes 2024-09-28 14:40:59 -06:00
parent 82fbcea183
commit 2ec9053a4c
1 changed files with 4 additions and 3 deletions

View File

@ -209,12 +209,13 @@ export default {
let ready = false let ready = false
next(async vm => { next(async vm => {
if (vm.currentId !== vm.id) { if (vm.currentId !== vm.id) {
vm.msg = ""
vm.messages = []
while (!ready) { while (!ready) {
vm.msg = ""
vm.currentId = null
vm.originalFilename = null
vm.itemsForUser = [] vm.itemsForUser = []
vm.originalItems = [] vm.originalItems = []
vm.currentId = null vm.workerLog = []
try { try {
const response = await axios.get('/api/data/item/import/get/' + vm.id) const response = await axios.get('/api/data/item/import/get/' + vm.id)
if (!response.data.success) { if (!response.data.success) {