1***@qq.com
1***@qq.com
  • 发布:2022-10-07 15:01
  • 更新:2022-10-07 15:01
  • 阅读:190

【报Bug】uniapp在nvue编译模式下热更新老是白屏,就是没有引入我写好的组件

分类:uni-app

产品分类: uniapp/App

PC开发环境操作系统: Windows

PC开发环境操作系统版本号: win10

HBuilderX类型: 正式

HBuilderX版本号: 3.6.4

手机系统: Android

手机系统版本号: Android 12

手机厂商: 小米

手机机型: mi8

页面类型: nvue

vue版本: vue2

打包方式: 云端

项目创建方式: HBuilderX

示例代码:

<view>
<header-bar :titleShow="true">
<template slot="title">
<view class="p-1">仿微信(10)</view>
</template>
</header-bar>

    <!-- 聊天列表 -->  
    <view v-for="(item, index) in chatList" :key="index"  
            class="flex align-center"  
    >  
        <!-- 头像 -->  
        <view class="flex align-center justify-center"  
                style="width: 145rpx;"  
        >  
            <image :src="item.avater" mode="widthFix"  
                    style="width: 92rpx;height: 92rpx;"  
                    class="rounded"  
            ></image>  
            <!-- <text class="bg-danger text-white rounded-circle font-sm position-absolute my-badage"  

            >  
                1  
            </text> -->  
            <i-badage iText="1"></i-badage>  
        </view>  
        <!-- 具体内容 -->  
        <view class="flex flex-column border-bottom border-light-secondary py-2 pr-2 flex-1">  
            <view class="flex align-center justify-between mb-1">  
                <text class="font-md">{{item.nickname}}</text>  
                <text class="font-sm text-light-muted">{{item.updateTime | formateTime}}</text>  
            </view>  
            <text class="font text-ellipsis text-light-muted">{{item.data}}</text>  
        </view>  
    </view>  
</view>

操作步骤:

第一次编译到手机,然后随便写两个代码他就白屏了

预期结果:

正常的微信界面

实际结果:

白屏

bug描述:

热更新出问题了,一更新就白屏就得重新编译

2022-10-07 15:01 负责人:无 分享
已邀请:

要回复问题请先登录注册