在线观看不卡亚洲电影_亚洲妓女99综合网_91青青青亚洲娱乐在线观看_日韩无码高清综合久久

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

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

1、weex 跳轉(zhuǎn)后頁面提示失敗 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>
回答
編輯回答
薄荷糖

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

2017年4月2日 10:43