There was an error while loading. Please reload this page.
1 parent 611aba8 commit 1f92367Copy full SHA for 1f92367
1 file changed
src/components/publish/publish_collection.vue
@@ -131,11 +131,17 @@ export default {
131
});
132
} else {
133
this.collections = cloneDeep(this.copyCollections);
134
+ this.loading = false;
135
}
136
},
137
visibleChange: function (val) {
138
if (val) {
- this.collections = cloneDeep(this.copyCollections);
139
+ // 下拉框打开时,如果还没有初始化数据,则加载
140
+ if (this.copyCollections.length === 0) {
141
+ this.loadCollections();
142
+ } else {
143
+ this.collections = cloneDeep(this.copyCollections);
144
+ }
145
146
147
0 commit comments