|
|
@ -49,6 +49,11 @@ const performScan = async () => { |
|
|
const result = await scrapApi.scanScrap(characterId.value) |
|
|
const result = await scrapApi.scanScrap(characterId.value) |
|
|
scanResult.value = result |
|
|
scanResult.value = result |
|
|
await characterStore.fetchCharacters() |
|
|
await characterStore.fetchCharacters() |
|
|
|
|
|
const updatedChar = characterStore.characters.find(c => c.id === characterId.value) |
|
|
|
|
|
if (updatedChar) { |
|
|
|
|
|
characterStore.currentCharacter = updatedChar |
|
|
|
|
|
localStorage.setItem('current_character', JSON.stringify(updatedChar)) |
|
|
|
|
|
} |
|
|
} catch (error: unknown) { |
|
|
} catch (error: unknown) { |
|
|
errorMessage.value = error instanceof Error ? error.message : String(error) |
|
|
errorMessage.value = error instanceof Error ? error.message : String(error) |
|
|
} finally { |
|
|
} finally { |
|
|
|