Update image.html

This commit is contained in:
Anyon 2022-07-06 15:36:17 +08:00
parent 55c037d7aa
commit 73512f0ab8

View File

@ -25,15 +25,8 @@
var app = new vue({ var app = new vue({
el: '#ImageDialog', el: '#ImageDialog',
data: { data: {
page: 1, page: 1, limit: 15, show: false, mult: false,
limit: 15, keys: '', list: [], data: [], idxs: {}, urls: [],
show: false,
mult: false,
keys: '',
list: [],
data: [],
idxs: {},
urls: [],
}, },
created: function () { created: function () {
this.$btn = $('#{$get.id|default=""}'); this.$btn = $('#{$get.id|default=""}');
@ -52,8 +45,7 @@
this.urls = []; this.urls = [];
this.data.forEach(function (file) { this.data.forEach(function (file) {
app.setValue(file.xurl); app.setValue(file.xurl);
}); }), this.setInput();
this.setInput();
}, },
// 设置单项数据 // 设置单项数据
setItem: function (item) { setItem: function (item) {