第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

vue3.0打包后打開(kāi)dist中的index.html報(bào)下列錯(cuò)誤

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

百度了好久還是解決不了問(wèn)題

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)
????},
????//?電子書(shū)解析和渲染
????showEpub?()?{
??????//?生成Ebook
??????this.book?=?new?Epub(DOWNLOAD_URL)
??????//?生成Rendition,通過(guò)Book.renderTo方法生成
??????this.rendition?=?this.book.renderTo('read',?{
????????width:?window.innerWidth,
????????height:?window.innerHeight
??????})
??????//?通過(guò)Rendition.display渲染電子書(shū)
??????this.rendition.display()
??????this.themes?=?this.rendition.themes
??????this.changeFontSize(this.defaultFontSize)
??????this.registerTheme()
??????this.setTheme(this.defaultTheme)
??????//?獲取location對(duì)象來(lái)實(shí)現(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:?'./'
}

不知道哪里出了問(wèn)題,求救?。?!

正在回答

1 回答

您好,請(qǐng)問(wèn)您這個(gè)問(wèn)題解決了嘛,我也遇到這個(gè)問(wèn)題了。。。項(xiàng)目著急上線,能回復(fù)一下嘛

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

舉報(bào)

0/150
提交
取消

vue3.0打包后打開(kāi)dist中的index.html報(bào)下列錯(cuò)誤

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

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

幫助反饋 APP下載

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

公眾號(hào)

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