鍍金池/ 問(wèn)答/HTML/ Weex 跳轉(zhuǎn)頁(yè)面失敗 should have a template tag

Weex 跳轉(zhuǎn)頁(yè)面失敗 should have a template tag

1、weex 跳轉(zhuǎn)后頁(yè)面提示失敗 render error: -2003
2、日志信息 ERROR: should have a template tag
3、

<template>
    <div class="wrapper">
        <text class="title">這是第二個(gè)頁(yè)面</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>
回答
編輯回答
薄荷糖

創(chuàng)建第二個(gè)頁(yè)面的時(shí)候使用的是".we"結(jié)尾的文件,將后綴改為".vue"就可以了

2017年4月2日 10:43