Weex 跳转页面失败 should have a template tag

1、weex 跳转后页面提示失败 render error: -2003
2、日志信息 ERROR: should have a template tag
3、

<template>
    <div class="wrapper">
        <text class="title">这是第二个页面</text>
    </div>
</template>

<script>
    module.exports = {
        data: {},
        methods: {}
    }
</script>

<style>
    .wrapper {
        align-items: center;
        margin-top: 50px;
    }

    .title {
        padding-top: 30px;
        padding-bottom: 40px;
        font-size: 48px;
    }
</style>
阅读 1.4k
1 个回答
新手上路,请多包涵

创建第二个页面的时候使用的是".we"结尾的文件,将后缀改为".vue"就可以了

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进