浏览代码

Signed-off-by: 1004749546@qq.com <1004749546@qq.com>
程序显示修改

1004749546@qq.com 4 年之前
父节点
当前提交
7965b7ede0
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      App.vue

+ 2 - 2
App.vue

@@ -1,6 +1,6 @@
 <script>
 	const uat_URL = 'http://carwash.test.zyucgj.com/cw-wechat/' // 预发布
-	// const uat_URL = 'http://192.168.16.102:8103/cw-wechat/' // 本地
+	// const uat_URL = 'http://192.168.16.105:8103/cw-wechat/' // 本地
 	const pro_URL = 'http://carwash.zyucgj.com/saas/clz/'  // 生产
 	const buildType = 0 // 打包环境对应类型,1 生产 0 预发布
 	const buildURL = buildType ? pro_URL : uat_URL // 打包后实际对应的url
@@ -29,7 +29,7 @@
 		onShow: function() {
 			const pages = getCurrentPages(); // 获取加载的页面
 			const currentPage = pages[pages.length - 1]; // 获取当前页面的对象
-			let url = currentPage.route; // 当前页面url
+			let url = currentPage ? currentPage.route :''; // 当前页面url
 			// console.log(url,'App Show')
 			// 用户扫描二维码后进入下单页面 未支付时,切换小程序至后台,再次显示时 进入首页
 			if(this.$store.state.vuex_orderInfo.orderStatus != 'PAID'&&url=='pages/getOrder/getOrder') {