document.title

This commit is contained in:
花有清香月有阴
2021-12-24 14:07:24 +08:00
parent 746f297947
commit 4651151cd1
2 changed files with 5 additions and 5 deletions

View File

@@ -80,7 +80,7 @@ export default {
}, },
computed: { ...mapState(['user']) }, computed: { ...mapState(['user']) },
onLoad() { onLoad() {
uni.setNavigationBarTitle({ title: '婚丧嫁娶' }) document.title = '婚丧嫁娶'
this.$dict.load('marriageType', 'modeType') this.$dict.load('marriageType', 'modeType')
this.forms.areaId = this.user.areaId this.forms.areaId = this.user.areaId
}, },
@@ -134,9 +134,9 @@ export default {
if (res.code == 0) { if (res.code == 0) {
this.flag = false this.flag = false
this.$u.toast('发布成功') this.$u.toast('发布成功')
uni.$emit('updateList') uni.$emit('updateList')
setTimeout(() => { setTimeout(() => {
uni.navigateBack() uni.navigateBack()
}, 600) }, 600)
} }
}) })

View File

@@ -141,7 +141,7 @@ export default {
}, },
watch: {}, watch: {},
onLoad(o) { onLoad(o) {
uni.setNavigationBarTitle({ title: '婚丧嫁娶' }) document.title = '婚丧嫁娶'
if (o.indexTabs) { if (o.indexTabs) {
this.currentTabs = o.indexTabs this.currentTabs = o.indexTabs
this.getList() this.getList()