wx.openDocument 报NOT_WHITELIST_FILE?
发布于 5 年前 作者 xiulanbai 13858 次浏览 来自 官方Issues
wx.openDocument({
			filePath: '../../res/Agreement.doc',
			fileType:'doc'
		})
VM3193 WAService.js:2 Unhandled promise rejection {errMsg: "openDocument:fail NOT_WHITELIST_FILE: no such file or directory ../../res/Agreement.doc"}(env: Windows,mp,1.05.2108130; lib: 2.17.0)

试过使用绝对路径也不行

2 回复

不能打开工程内的文件

文档写的是只能本地路径 代码包里的不可以~~

回到顶部