在vue项目中,调用chrome插件方法,chrome.runtime,提示为null, 随便找个页面在console里面打印chrome.runtime是正常的,请问这是vue把chrome对象重写了吗? 还是我调用的方式不对?
chrome.runtime.sendMessage(this.keyId, message, function(response){
callback(response)
});
在vue项目中,调用chrome插件方法,chrome.runtime,提示为null, 随便找个页面在console里面打印chrome.runtime是正常的,请问这是vue把chrome对象重写了吗? 还是我调用的方式不对?
chrome.runtime.sendMessage(this.keyId, message, function(response){
callback(response)
});
搜了半天只有这一个相同的问题,也不知道题主有没有解决。。。