ソースを参照

调整搜索组件的赋值

Lijy 1 年間 前
コミット
b0df74d9d3

+ 2 - 1
fhKeeper/formulahousekeeper/timesheet/src/components/select.vue

@@ -524,7 +524,8 @@ export default {
                     })
                     // this.options = arr
                     console.log('将要赋值')
-                    this.$set(this, 'options', arr)
+                    var newArr = arr.length > 0 ? arr : res.data.records
+                    this.$set(this, 'options', newArr)
                     this.cursor = res.data.nextCursor
                 } else {
                     this.$message({