chore(组件): 组件尽量使用异步导入模式
This commit is contained in:
@@ -3,11 +3,13 @@
|
||||
<block v-if="detail">
|
||||
<view class="page">
|
||||
<view class="system-form-wrap">
|
||||
<view class="form-title" style="text-align:center;padding-top:40rpx;font-weight:600;font-size:30rpx;">
|
||||
<view class="form-title"
|
||||
style="text-align:center;padding-top:40rpx;font-weight:600;font-size:30rpx;">
|
||||
请填写表单所需信息
|
||||
</view>
|
||||
<ns-newform ref="form" :data="detail.json_data" @submit="create"></ns-newform>
|
||||
<button class="button mini" style="font-size:32rpx;" type="primary" size="mini" @click="create">提交</button>
|
||||
<button class="button mini" style="font-size:32rpx;" type="primary" size="mini"
|
||||
@click="create">提交</button>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
@@ -21,6 +23,12 @@
|
||||
|
||||
<script>
|
||||
export default {
|
||||
components: {
|
||||
nsEmpty: () => import('@/components/ns-empty/ns-empty.vue'),
|
||||
nsNewform: () => import('@/components/ns-newform/ns-newform.vue'),
|
||||
loadingCover: () => import('@/components/loading-cover/loading-cover.vue'),
|
||||
nsLogin: () => import('@/components/ns-login/ns-login.vue'),
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
id: 0,
|
||||
@@ -37,7 +45,7 @@ export default {
|
||||
title: '提示',
|
||||
content: '参数错误',
|
||||
showCancel: false,
|
||||
success: () => {}
|
||||
success: () => { }
|
||||
})
|
||||
return false
|
||||
}
|
||||
@@ -103,7 +111,7 @@ export default {
|
||||
title: '提示',
|
||||
content: '提交成功',
|
||||
showCancel: false,
|
||||
success: () => {}
|
||||
success: () => { }
|
||||
})
|
||||
} else {
|
||||
this.isRepeat = false
|
||||
|
||||
Reference in New Issue
Block a user