|
|
@ -1,11 +1,11 @@ |
|
|
|
|
|
|
|
|
<script> |
|
|
<script> |
|
|
import { getEnterShareTarget, resolveHomeShareTarget } from '@/utils/sharePath.js' |
|
|
import { getEnterShareTarget, resolveHomeShareTarget, resolveMiniCodeSceneTarget } from '@/utils/sharePath.js' |
|
|
|
|
|
|
|
|
export default { |
|
|
export default { |
|
|
|
|
|
|
|
|
onShow: function(options) { |
|
|
onShow: function(options) { |
|
|
const targetPath = getEnterShareTarget(options) |
|
|
const targetPath = resolveMiniCodeSceneTarget(options && options.query && options.query.scene) || getEnterShareTarget(options) |
|
|
if (targetPath) { |
|
|
if (targetPath) { |
|
|
uni.setStorageSync('pendingShareTargetPath', targetPath) |
|
|
uni.setStorageSync('pendingShareTargetPath', targetPath) |
|
|
} else if (resolveHomeShareTarget(options && options.query)) { |
|
|
} else if (resolveHomeShareTarget(options && options.query)) { |
|
|
|