chore(组件): 组件尽量使用异步导入模式
This commit is contained in:
@@ -3,11 +3,14 @@
|
||||
<view class="iconfont iconshang navigate-back" @click="navigateBack"></view>
|
||||
<web-view :src="src"></web-view>
|
||||
</view>
|
||||
<!-- <diy-bottom-nav></diy-bottom-nav> -->
|
||||
<!-- <diy-bottom-nav></diy-bottom-nav> -->
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
components: {
|
||||
diyBottomNav: () => import('@/components-diy/diy-bottom-nav.vue'),
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
src: ''
|
||||
@@ -21,7 +24,7 @@ export default {
|
||||
console.log(res)
|
||||
if (res.code == 0) {
|
||||
uni.setNavigationBarTitle({
|
||||
title:res.data.title
|
||||
title: res.data.title
|
||||
})
|
||||
this.src = res.data.url
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user