Commit baf371620ec713edb0c36e81adcadfd9cba9b60f
1 parent
56424bcf
issues/I48I0E 省市三级联动列表无法显示
Showing
1 changed file
with
4 additions
and
0 deletions
ant-design-vue-jeecg/src/components/_util/Area.js
1 | +import Vue from 'vue' | |
1 | 2 | /** |
2 | 3 | * 省市区 |
3 | 4 | */ |
... | ... | @@ -7,6 +8,9 @@ export default class Area { |
7 | 8 | * @param express |
8 | 9 | */ |
9 | 10 | constructor(pcaa) { |
11 | + if(!pcaa){ | |
12 | + pcaa = Vue.prototype.$Jpcaa; | |
13 | + } | |
10 | 14 | let arr = [] |
11 | 15 | const province = pcaa['86'] |
12 | 16 | Object.keys(province).map(key=>{ |
... | ... |