taro icon indicating copy to clipboard operation
taro copied to clipboard

vue 生命周期错误

Open ccqgithub opened this issue 1 year ago • 0 comments

相关平台

微信小程序

复现仓库

https://gitee.com/chenchangqin/taro-issue.git 小程序基础库: 2.21.2 使用框架: Vue 3

复现步骤

文档介绍说是 beforeMount 在 onLoad之后触发,但是实际上 onMounted 都在 useLoad 之前触发。

onBeforeMount
onMounted
useLoad

期望结果

onLoad 在 onMounted 和 beforeMount 之前触发

实际结果

和文档一致

环境信息

Taro CLI 4.0.4 environment info:
    System:
      OS: macOS 13.5.2
      Shell: 5.9 - /bin/zsh
    Binaries:
      Node: 20.10.0 - /usr/local/bin/node
      npm: 10.2.3 - /usr/local/bin/npm
    npmPackages:
      @tarojs/cli: 4.0.4 => 4.0.4 
      @tarojs/components: 4.0.4 => 4.0.4 
      @tarojs/helper: 4.0.4 => 4.0.4 
      @tarojs/plugin-framework-vue3: 4.0.4 => 4.0.4 
      @tarojs/plugin-platform-alipay: 4.0.4 => 4.0.4 
      @tarojs/plugin-platform-h5: 4.0.4 => 4.0.4 
      @tarojs/plugin-platform-jd: 4.0.4 => 4.0.4 
      @tarojs/plugin-platform-qq: 4.0.4 => 4.0.4 
      @tarojs/plugin-platform-swan: 4.0.4 => 4.0.4 
      @tarojs/plugin-platform-tt: 4.0.4 => 4.0.4 
      @tarojs/plugin-platform-weapp: 4.0.4 => 4.0.4 
      @tarojs/runtime: 4.0.4 => 4.0.4 
      @tarojs/shared: 4.0.4 => 4.0.4 
      @tarojs/taro: 4.0.4 => 4.0.4 
      @tarojs/taro-loader: 4.0.4 => 4.0.4 
      @tarojs/webpack5-runner: 4.0.4 => 4.0.4 
      babel-preset-taro: 4.0.4 => 4.0.4 
      eslint-config-taro: 4.0.4 => 4.0.4 

ccqgithub avatar Aug 28 '24 08:08 ccqgithub