|
@@ -9,6 +9,7 @@ import { useWindowSize } from '@vueuse/core'
|
|
import {useCachedViewsStore} from '@/store/modules/cachedViews'
|
|
import {useCachedViewsStore} from '@/store/modules/cachedViews'
|
|
import EditBaseInfo from './components/EidtBaseInfo.vue'
|
|
import EditBaseInfo from './components/EidtBaseInfo.vue'
|
|
import html2canvas from "html2canvas";
|
|
import html2canvas from "html2canvas";
|
|
|
|
+import {transfImgTobase64} from '@/hooks/common'
|
|
|
|
|
|
const cachedViewsStore=useCachedViewsStore()
|
|
const cachedViewsStore=useCachedViewsStore()
|
|
const { width, height } = useWindowSize()
|
|
const { width, height } = useWindowSize()
|
|
@@ -218,6 +219,8 @@ async function handleShowPoster(item){
|
|
}
|
|
}
|
|
}
|
|
}
|
|
chapterItemPosterInfo.value=item
|
|
chapterItemPosterInfo.value=item
|
|
|
|
+ chapterItemPosterInfo.value.TypeEditImg=await transfImgTobase64(chapterItemPosterInfo.value.TypeEditImg)
|
|
|
|
+ chapterItemPosterInfo.value.QRCodeImg=await transfImgTobase64(chapterItemPosterInfo.value.QRCodeImg)
|
|
|
|
|
|
nextTick(()=>{
|
|
nextTick(()=>{
|
|
const targetEl = document.getElementById('chapter-poster-box');
|
|
const targetEl = document.getElementById('chapter-poster-box');
|