[bugfix] Toast: ssr error (#1910)

This commit is contained in:
neverland
2018-10-09 18:12:02 +08:00
committed by GitHub
parent bcfa4ed3ac
commit 6858f4e2ea
7 changed files with 39 additions and 8 deletions

View File

@@ -69,7 +69,7 @@
</van-button>
</div>
<popup v-model="showAreaPopup" position="bottom" :lazy-render="false" :get-container="getAreaContainer">
<popup v-model="showAreaPopup" position="bottom" :lazy-render="false" get-container="body">
<van-area
ref="area"
:loading="!areaListLoaded"
@@ -305,10 +305,6 @@ export default create({
setAddressDetail(value) {
this.data.addressDetail = value;
},
getAreaContainer() {
return document.body;
}
}
});