|
@@ -311,7 +311,9 @@
|
|
|
if (res.data) {
|
|
|
if (res.data.area === null || res.data.area === undefined) {
|
|
|
_this.setAreaAllNotSelected()
|
|
|
- _this.addBackTip()
|
|
|
+ if(_this.isNeedApi) {
|
|
|
+ _this.addBackTip()
|
|
|
+ }
|
|
|
} else {
|
|
|
if (res.data.area) {
|
|
|
// 赋值默认已选
|
|
@@ -368,13 +370,11 @@
|
|
|
},
|
|
|
confirmed: function (area) {
|
|
|
this.setAreaSelected(area)
|
|
|
- if(!this.isNeedApi) {
|
|
|
- sessionStorage.setItem('freeSelectArea', JSON.stringify(area))
|
|
|
- history.back()
|
|
|
- return
|
|
|
- }
|
|
|
if (this.moreThanSubCount) {
|
|
|
this.popupTip = true
|
|
|
+ } else if(!this.isNeedApi) {
|
|
|
+ sessionStorage.setItem('freeSelectArea', JSON.stringify(area))
|
|
|
+ history.back()
|
|
|
} else {
|
|
|
this.userUpdate(area)
|
|
|
}
|