This commit is contained in:
yanran200730
2022-11-09 11:52:10 +08:00
2 changed files with 4 additions and 3 deletions

View File

@@ -72,6 +72,7 @@
<script> <script>
import {mapActions, mapState} from 'vuex' import {mapActions, mapState} from 'vuex'
const navbarTitle = wx.getAccountInfoSync().miniProgram.appId == "wx41792b6cbf573dc0" ? "平昌党建" : "数字平昌"
export default { export default {
name: 'AppHome', name: 'AppHome',
appName: "首页", appName: "首页",
@@ -102,7 +103,7 @@ export default {
} }
}, },
onReady() { onReady() {
uni.setNavigationBarTitle({title: "数字平昌"}) uni.setNavigationBarTitle({title: navbarTitle})
}, },
onLoad() { onLoad() {
this.autoLogin().then(() => { this.autoLogin().then(() => {
@@ -239,7 +240,7 @@ export default {
onShareAppMessage() { onShareAppMessage() {
return { return {
title: '欢迎使用数字乡村治理服务一体化平台~', title: `欢迎使用${navbarTitle}~`,
path: `/pages/AppHome/AppHome` path: `/pages/AppHome/AppHome`
} }
}, },

View File

@@ -16,7 +16,7 @@ const configs = {
dev: { dev: {
areaId: '341021104000', areaId: '341021104000',
areaName: '郑村镇', areaName: '郑村镇',
baseUrl: 'http://192.168.1.87:59998' baseUrl: 'http://192.168.1.87:9000'
} }
} }
// 当前选中配置 // 当前选中配置