Commit 73827d0b authored by Damon's avatar Damon

fix: 防止扫码更换机构

parent d5be8488
...@@ -85,7 +85,7 @@ export default { ...@@ -85,7 +85,7 @@ export default {
this.$u.vuex('orgId', orgId || -1) this.$u.vuex('orgId', orgId || -1)
} else { } else {
if (scene.includes(options.scene)) { // 如果需要更新机构ID if (scene.includes(options.scene)) { // 如果需要更新机构ID
if (!orgId) { // 针对重新载入小程序 安卓的query参数会清空 if (!orgId && options.path === 'pages/index/index') { // 针对重新载入小程序 安卓的query参数会清空
// 如果没有参数,需要重置为平台的场景 // 如果没有参数,需要重置为平台的场景
const platformScene = [1005, 1006, 1026, 1053, 1145, 1183, 1017] const platformScene = [1005, 1006, 1026, 1053, 1145, 1183, 1017]
if (platformScene.includes(options.scene)) { if (platformScene.includes(options.scene)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment