Commit d44b5ea9 by liimin

去掉初始化时的路径合并检查

1 parent 622eb262
......@@ -2,7 +2,6 @@
</template>
<script type='text/ecmascript-6'>
import StoragePathMerge from '@/utils/storageMerge/index.js'
export default {
name: '',
data () {
......@@ -10,8 +9,6 @@ export default {
}
},
mounted () {
// 路径归并:启动后异步、不阻塞本页与后续跳转,失败仅告警(逻辑见 StoragePathMerge.runDeferred)。
StoragePathMerge.runDeferred()
uni.showLoading({
mask: true
})
......
......@@ -237,17 +237,6 @@ class StoragePathMerge {
}
}
/**
* 后台异步执行路径归并,不阻塞、不向上抛错,不影响调用方主流程。
* 仅作为包根切换(/data/user/0 ↔ /storage/emulated/0)后旧录音的兜底,
* 对当前包根下的录音无副作用。即便卡住或失败,调用方应用也已启动。
*/
static runDeferred() {
StoragePathMerge.run().catch(e =>
uni.$logger.local.warn('路径合并失败(不阻断启动): ' + (e?.message || e))
)
}
static async executeRun({ force = false } = {}) {
logStep(STAGE.RUN, '======== 路径合并开始 ========', { force })
const plusRef = await waitForPlus()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!