Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions hello-world/nuxt/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ npm install
npm run dev
```

Then open `https://localhost:3000/` to viewthe sample app.
Then open `https://localhost:3000/` to view the sample app.

## Creating the sample project

Expand Down Expand Up @@ -188,14 +188,23 @@ onMounted(async () => {

// dispose cvRouter when it's no longer needed
onBeforeUnmount(async () => {
bDestoryed = true;
isDestroyed = true;
try {
await pInit;
cvRouter?.dispose();
cameraEnhancer?.dispose();
} catch (_) { }
});
</script>

<template>
<div>
<div ref="cameraViewContainer" class="camera-view-container"></div>
<br />
Results:
<div ref="resultsContainer" class="results"></div>
</div>
</template>
```
> Note:
>
Expand Down