|
|
@@ -210,7 +210,7 @@
|
|
|
|
|
|
<script setup>
|
|
|
import { computed } from 'vue'
|
|
|
-import { onShow } from '@dcloudio/uni-app'
|
|
|
+import { onShow, getCurrentInstance } from '@dcloudio/uni-app'
|
|
|
import { useUserStore } from '@/stores/user'
|
|
|
import { profileApi } from '@/utils/api'
|
|
|
|
|
|
@@ -306,7 +306,7 @@ function generatePoster() {
|
|
|
return downloadImage(url)
|
|
|
})
|
|
|
]).then(([avatarPath, qrPath]) => {
|
|
|
- const ctx = uni.createCanvasContext('posterCanvas', getCurrentInstance())
|
|
|
+ const ctx = uni.createCanvasContext('posterCanvas')
|
|
|
const W = 375, H = 670
|
|
|
|
|
|
// Background
|