wangfukang 1 month ago
parent
commit
4273c77368
  1. 10
      App.vue

10
App.vue

@ -1,5 +1,6 @@
<script> <script>
import { getEnterShareTarget, resolveHomeShareTarget } from '@/utils/sharePath.js'
export default { export default {
@ -11,7 +12,14 @@
} }
}) })
}, },
onShow: function() { onShow: function(options) {
const targetPath = getEnterShareTarget(options)
if (targetPath) {
uni.setStorageSync('pendingShareTargetPath', targetPath)
} else if (resolveHomeShareTarget(options && options.query)) {
uni.removeStorageSync('pendingShareTargetPath')
uni.removeStorageSync('authPendingTargetPath')
}
let updateManager = uni.getUpdateManager(); let updateManager = uni.getUpdateManager();
if (!updateManager) { if (!updateManager) {
return; return;

Loading…
Cancel
Save