uniapp使用pdfjs预览PDF文件报错

这个是我显示路径的代码

<web-view :src="pathNotice"></web-view>

onLoad(options) {
            let pdfData = options.noticeUrl
            let link = encodeURIComponent(pdfData)
            console.log(link);
            // 设置连接地址;
             this.pathNotice = '/hybrid/html/pdf/web/viewer.html?file=' + link;
            console.log(this.pathNotice, '============');
    },

报错信息:TypeError: Failed to fetch

获取失败 ,url 可能不对