Skip to content

Commit 1dd033d

Browse files
committed
fix: 修复了 clipboard 在 app 上设置剪贴板成功时,会弹两个框。 style: radio 页面 两个 radio 过近。
1 parent dfc1857 commit 1dd033d

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

pages/API/clipboard/clipboard.vue

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,16 +57,22 @@
5757
uni.setClipboardData({
5858
data: data,
5959
success: () => {
60+
// 成功处理
61+
// #ifdef MP-ALIPAY || MP-BAIDU || MP-TOUTIAO
6062
uni.showModal({
6163
content: '设置剪贴板成功',
6264
showCancel: false
6365
})
66+
// #endif
6467
},
6568
fail: () => {
69+
// 失败处理
70+
// #ifdef MP-ALIPAY || MP-BAIDU || MP-TOUTIAO
6671
uni.showModal({
6772
content: '储存数据失败!',
6873
showCancel: false
6974
})
75+
// #endif
7076
}
7177
});
7278
}

pages/component/radio/radio.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<view class="uni-padding-wrap">
55
<view class="uni-title">默认样式</view>
66
<view>
7-
<label class="radio">
7+
<label class="radio" style="margin-right: 30upx;">
88
<radio value="r1" checked="true" />选中
99
</label>
1010
<label class="radio">

0 commit comments

Comments
 (0)