Compare commits

..

No commits in common. "c11b9765e61ee2e4aa5ac52c5e9a9e9ac1439c29" and "0e34b6a1e953ca0fb82d1aa55e9d37333bfba48d" have entirely different histories.

3 changed files with 6 additions and 15 deletions

View File

@ -120,13 +120,6 @@ const renderPage = async (canvasobj) => {
}
//
const savaDataStore = () => {
if(!toolState.isToolWin){
toolState.isPdfWin=false
toolState.showBoardAll=true //
ipcRenderer.invoke('tool-sphere:reset') //tool
ipcRenderer.send('open-PDF:minimize')
return
}
imgarr.value.forEach((a) => {
if (a.index == 0) {
a.JSONdata = canvasFabricVue.value.canvas.toJSON()
@ -177,8 +170,7 @@ const initPdf = async (type = 'default') => {
a.JSONdata = canvas1FabricVue.value.canvas.toJSON()
}
})
// +
if (type != 'default' && toolState.isToolWin) {
if (type != 'default') {
const nameMap = new Map(canvsStore.pageArr.map((item) => [item.page, item.id]))
//
let promises = []

View File

@ -50,8 +50,7 @@ const isOnLoadShow = ref(false) //加载完毕显示
//
const pdfObj = reactive({
numberOfPdf: 2, //
// pdfUrl: getStaticUrl('aaa.pdf', 'user', 'selfFile', true),//
pdfUrl: null,
pdfUrl: getStaticUrl('aaa.pdf', 'user', 'selfFile', true),
allPageData:[],
bookId:null,
numPages: 1 //
@ -108,7 +107,7 @@ const switchPageMode = () => {
}
onMounted(async () => {
toolState.isPdfWin=true
pdfObj.pdfUrl = getStaticUrl(route.query.path, 'user', 'selfFile', true)
console.log(toolState.showBoardAll,"c初始")
textbookId.value = route.query.textbookId
pdfObj.bookId=textbookId.value
getBookMarkById(textbookId.value).then(res=>{

View File

@ -537,10 +537,10 @@ export default {
async navtoPdf() {
const toolStore = useToolState()
if (toolStore.isPdfWin) return this.$message.error('您当前已打开课本,请勿重复操作')
let path = await this.getBookPathFromServer()
path=path.replace(/^.*[\\\/]/, '');
// let path = await this.getBookPathFromServer()
// console.log(path)
// console.log(this.uploadData.textbookId)
createWindow('open-PDF', { url: '/classBegins/index?textbookId='+this.uploadData.textbookId+'&path='+ path })
createWindow('open-PDF', { url: '/classBegins/index?textbookId='+this.uploadData.textbookId })
},
// -
openLesson() {