diff --git a/app/admin/view/api/upload/image.html b/app/admin/view/api/upload/image.html
index 010eccf9c..d4da9ad2b 100644
--- a/app/admin/view/api/upload/image.html
+++ b/app/admin/view/api/upload/image.html
@@ -9,7 +9,7 @@
-
+
@@ -82,19 +82,21 @@
el: '#ImageDialog',
data: {
page: 1,
- keys: '',
limit: 15,
- items: [],
+ show: false,
$btn: null,
+ keys: '',
+ items: [],
},
created: function () {
- this.$btn = $('#{$get.id}');
+ this.$btn = $('#{$get.id|default=""}');
this.loadPage();
},
methods: {
// 创建分页工具条
addPage: function (count) {
var that = this;
+ this.show = true;
layui.laypage.render({
curr: this.page, count: count, limit: that.limit,
layout: ['count', 'prev', 'page', 'next', 'refresh'],