收藏
回答

开发标签的问题?

最近需要从公众号网页端,打开小程序。

所以要用到 <wx-open-launch-weapp></wx-open-launch-weapp>。 但在这个标签中插入内容时遇到了问题。

官方文档说 :<template></template>进行包裹。对于Vue等视图框架,为了避免template标签冲突的问题,可使用<script type="text/wxtag-template"><script>进行代替,来包裹插槽模版和样式。

但在uniapp中 我不管所以<template></template> 还是<script type="text/wxtag-template"><script> 都不行。

回答关注问题邀请回答
收藏

1 个回答

  • @Z.F.Partric
    @Z.F.Partric
    2021-03-11

    楼主,请问你解决了吗,我也碰到了这个问题

    uniapp中用template包裹说 The slot <template> or <script type="text/wxtag-template"> of <wx-open-launch-app> is missing

    <script type="text/wxtag-template">包裹代码编译就不通过。

    不知道怎么搞了。

    2021-03-11
    有用
    回复 3
    • 舒克
      舒克
      2021-05-11
      我也是,但是<script type="text/wxtag-template"> 包裹之后就解决了
      2021-05-11
      回复
    • 一
      2022-03-01
      在main.js中添加Vue.config.ignoredElements = ['wx-open-launch-weapp']//使用小程序跳转标签是屏蔽编译此插件
      2022-03-01
      回复
    • 7y
      7y
      2022-06-07
      解决了吗  一样 uni里面报错
      2022-06-07
      回复
登录 后发表内容
问题标签