t20-common-lib 0.12.17 → 0.12.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "t20-common-lib",
3
- "version": "0.12.17",
3
+ "version": "0.12.18",
4
4
  "description": "T20",
5
5
  "private": false,
6
6
  "main": "dist/index.js",
@@ -116,6 +116,17 @@ export default {
116
116
  // 只有在值实际变化时才重置(避免无意义的重新加载)
117
117
  if (newVal === oldVal) return;
118
118
 
119
+ // immediate 首次执行时 Vue2 的 oldVal 为 undefined,此时不应清空 v-model,
120
+ // 否则会冲掉父组件传入的回显值;仅按当前 bankCode 重新拉列表即可。
121
+ if (oldVal === undefined) {
122
+ this.branchBankList = [];
123
+ this.page.current = 1;
124
+ this.page.key = "";
125
+ this.page.hasMore = true;
126
+ this.fetchBranchData(true);
127
+ return;
128
+ }
129
+
119
130
  this.resetAndFetch();
120
131
  },
121
132
  },
@@ -123,9 +134,6 @@ export default {
123
134
  created() {
124
135
  this.debouncedFilter = debounce(this.handleFilter, 300);
125
136
  },
126
- mounted() {
127
- this.fetchBranchData(true);
128
- },
129
137
  computed: {
130
138
  displayOption() {
131
139
  if (this.multiple) return null;