Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用WePY2时,使用腾讯视频插件不成功,有什么好的解决办法没? #2519

Closed
dongpoge opened this issue Jan 13, 2020 · 4 comments
Labels

Comments

@dongpoge
Copy link

<config>
{
  navigationBarTitleText: '平台',
  usingComponents: {
    "txv-video": "plugin://tencentvideo/video"
  }
}
</config>

项目编译后,产生是json文件里面的内容


{
    "navigationBarTitleText": "平台",
    "component": true,
    "usingComponents": {
        "txv-video": "./plugin://tencentvideo/video"
    }
}

"txv-video": "./plugin://tencentvideo/video"

路径前面加了 './' ,导致找不到插件

@LeadChenyi
Copy link

app -> plugins 也要配置

@dongpoge
Copy link
Author

app -> plugins 已经配置了
问题不在这,是编译后,路径变了
正确的路径:plugin://tencentvideo/video
编译后是:./plugin://tencentvideo/video
导致报错,如果把./ 去掉是正常的

就是"txv-video": "plugin://tencentvideo/video" 经过编译后,怎么不让它改变路径

@Gcaufy Gcaufy added the bug label Jan 23, 2020
@Gcaufy
Copy link
Collaborator

Gcaufy commented Jan 23, 2020

@SpringHgui
定位到了,这个是这个 PR 引入的问题:#2461
可以手动修改这里的代码。
稍后我再看看怎么处理这里问题

@Gcaufy
Copy link
Collaborator

Gcaufy commented Feb 4, 2020

#2517

@Gcaufy Gcaufy closed this as completed in 2a06e91 Feb 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants