1***@qq.com
1***@qq.com
  • 发布:2020-07-30 09:49
  • 更新:2020-07-30 09:49
  • 阅读:476

新建了个默认项目,发现如果首页的index中注释掉了image标签就会启动很慢

分类:uni-app

新建的默认uniapp项目,首页如果把image注释掉就会停留在转圈圈的阶段大概6秒。如果不注释掉则会很快,秒进。很费解,请大牛指点!!!

正常不转圈的代码:

<template>  
    <view>  
        <image class="logo" src="/static/logo.png"></image>  
        <view>  
            <text>{{title}}</text>  
        </view>  
    </view>  
</template>  

<script>  
    export default {  
        data() {  
            return {  
                title: 'Hello'  
            }  
        },  
        onLoad() {  

        },  
        methods: {  

        }  
    }  
</script>

转圈的代码:

<template>  
    <view>  
        <!-- <image class="logo" src="/static/logo.png"></image> -->  
        <view>  
            <text>{{title}}</text>  
        </view>  
    </view>  
</template>  

<script>  
    export default {  
        data() {  
            return {  
                title: 'Hello'  
            }  
        },  
        onLoad() {  

        },  
        methods: {  

        }  
    }  
</script>
2020-07-30 09:49 负责人:无 分享
已邀请:

该问题目前已经被锁定, 无法添加新回复