最近中文字幕高清中文字幕无,亚洲欧美高清一区二区三区,一本色道无码道dvd在线观看 ,一个人看的www免费高清中文字幕

為了賬號安全,請及時綁定郵箱和手機(jī)立即綁定

vue3.0打包后打開dist中的index.html報下列錯誤

https://img1.sycdn.imooc.com//5ce545d10001981d07850053.jpg

百度了好久還是解決不了問題

Ebook.vue中代碼:

const?DOWNLOAD_URL?=?'/book.epub'
global.ePub?=?Epub
export?default?{
??methods:?{
????//?根據(jù)鏈接跳轉(zhuǎn)到指定目錄
????jumpTo?(href)?{
??????this.rendition.display(href)
??????this.menuToggle()
????},
????//?progress值為0-100
????onProgressChange?(progress)?{
??????const?precentage?=?progress?/?100
??????const?location?=?precentage?>?0???this.location.cfiFromPercentage(precentage)?:?0
??????this.rendition.display(location)
????},
????//?電子書解析和渲染
????showEpub?()?{
??????//?生成Ebook
??????this.book?=?new?Epub(DOWNLOAD_URL)
??????//?生成Rendition,通過Book.renderTo方法生成
??????this.rendition?=?this.book.renderTo('read',?{
????????width:?window.innerWidth,
????????height:?window.innerHeight
??????})
??????//?通過Rendition.display渲染電子書
??????this.rendition.display()
??????this.themes?=?this.rendition.themes
??????this.changeFontSize(this.defaultFontSize)
??????this.registerTheme()
??????this.setTheme(this.defaultTheme)
??????//?獲取location對象來實現(xiàn)閱讀進(jìn)度功能
??????this.book.ready.then(()?=>?{
????????this.navigation?=?this.book.navigation
????????//?console.log(all)
????????//?console.log(this.navigation)
????????return?this.book.locations.generate()
??????}).then(result?=>?{
????????this.location?=?this.book.locations
????????this.bookAvailable?=?true
??????})
????}

vue.config.js中代碼:

const?path?=?require('path')

function?resolve?(dir)?{
??return?path.join(__dirname,?dir)
}

module.exports?=?{
??chainWebpack:?(config)?=>?{
????config.resolve.alias
??????.set('src',?resolve('src'))
??????.set('styles',?resolve('src/assets/styles'))
??????.set('components',?resolve('src/components'))
??},
??devServer:?{
????host:?'0.0.0.0',
????port:?8080
??},
??publicPath:?'./'
}

不知道哪里出了問題,求救!??!

正在回答

1 回答

您好,請問您這個問題解決了嘛,我也遇到這個問題了。。。項目著急上線,能回復(fù)一下嘛

0 回復(fù) 有任何疑惑可以回復(fù)我~

舉報

0/150
提交
取消

vue3.0打包后打開dist中的index.html報下列錯誤

我要回答 關(guān)注問題
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號