Explorar o código

代码生成细节处理

yxh %!s(int64=4) %!d(string=hai) anos
pai
achega
cbddb93b03
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      template/vm/vue/list-vue.template

+ 1 - 1
template/vm/vue/list-vue.template

@@ -490,7 +490,7 @@ export default {
     getList() {
       this.loading = true;
       list{{.table.ClassName}}(this.queryParams).then(response => {
-        let list = response.data.list;
+        let list = response.data.list || [];
         {{$hasCreatedBy := false}}
         {{$hasUpdatedBy := false}}
         {{range $index,$column := .table.Columns}}