diff --git a/app/admin/view/api/upload/image.html b/app/admin/view/api/upload/image.html
index 4a8cafaf5..ed7e5e868 100644
--- a/app/admin/view/api/upload/image.html
+++ b/app/admin/view/api/upload/image.html
@@ -35,7 +35,7 @@
var app = new vue({
el: '#ImageDialog',
data: {
- didx: 0,
+ didx: 0, selecting: false,
page: 1, limit: 15, show: false, mult: false,
keys: '', list: [], data: [], idxs: {}, urls: [],
},
@@ -78,6 +78,8 @@
// 设置单项数据
setItem: function (item) {
if (!this.mult) {
+ if (this.selecting) return;
+ this.selecting = true;
this.setValue(item.xurl).setInput();
} else if ((item.checked = !this.idxs[item.id])) {
(this.idxs[item.id] = item) && this.data.push(item);
@@ -162,4 +164,4 @@
>
{/if}
-
+
\ No newline at end of file