fix(formdata): 适配多端页面标题设置逻辑
调整导航栏标题设置代码,兼容WebView内核场景,同时保留H5和小程序的标题设置能力
This commit is contained in:
@@ -109,13 +109,9 @@ export default {
|
||||
if (res.code == 0 && res.data) {
|
||||
this.detail = res.data
|
||||
console.log(`form data =>`, this.detail)
|
||||
|
||||
// 非H5的情况下,设置标题
|
||||
if (!this.isFromMpWebView) {
|
||||
uni.setNavigationBarTitle({
|
||||
title: res.data.form_name
|
||||
})
|
||||
}
|
||||
uni.setNavigationBarTitle({
|
||||
title: res.data.form_name
|
||||
})
|
||||
}
|
||||
this.$refs.loadingCover && this.$refs.loadingCover.hide()
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user