AdvancedCat / taro-vue-router

The demo for using vue-router in Taro.
8 stars 2 forks source link

Taro Vue3 vue-router 设置history模式,在本地运行,在浏览器刷新页面,显示空白页 #3

Open PeachDeveloper opened 2 months ago

PeachDeveloper commented 2 months ago

相关平台

H5

复现仓库

浏览器版本: Chrome 122.0.6261.94 使用框架: Vue 3

复现步骤

1、配置config下的 h5.router.basename(h5端配置文件) image

2、首次进h5端,通过IP进 image

3、在浏览器刷新页面 image

期望结果

通过手动刷新页面,不会显示白屏

实际结果

浏览器显示白屏

环境信息

👽 Taro v4.0.4

  Taro CLI 4.0.4 environment info:
    System:
      OS: Windows 10 10.0.19045
    Binaries:
      Node: 18.17.0 - D:\tool\nodejs\node.EXE
      Yarn: 1.22.22 - D:\tool\nodejs\yarn.CMD
      npm: 9.6.7 - D:\tool\nodejs\npm.CMD
    npmPackages:
      @tarojs/cli: 3.6.28 => 3.6.28
      @tarojs/components: 3.6.28 => 3.6.28
      @tarojs/helper: 3.6.28 => 3.6.28
      @tarojs/plugin-framework-vue3: 3.6.28 => 3.6.28
      @tarojs/plugin-html: 3.6.28 => 3.6.28
      @tarojs/plugin-platform-alipay: 3.6.28 => 3.6.28
      @tarojs/plugin-platform-h5: 3.6.28 => 3.6.28
      @tarojs/plugin-platform-harmony-hybrid: 3.6.28 => 3.6.28
      @tarojs/plugin-platform-jd: 3.6.28 => 3.6.28
      @tarojs/plugin-platform-qq: 3.6.28 => 3.6.28
      @tarojs/plugin-platform-swan: 3.6.28 => 3.6.28
      @tarojs/plugin-platform-tt: 3.6.28 => 3.6.28
      @tarojs/plugin-platform-weapp: 3.6.28 => 3.6.28
      @tarojs/runtime: 3.6.28 => 3.6.28
      @tarojs/shared: 3.6.28 => 3.6.28
      @tarojs/taro: 3.6.28 => 3.6.28
      @tarojs/taro-loader: 3.6.28 => 3.6.28
      @tarojs/webpack5-runner: 3.6.28 => 3.6.28
      babel-preset-taro: 3.6.28 => 3.6.28
      eslint-config-taro: 3.6.28 => 3.6.28
PeachDeveloper commented 2 months ago

期望结果: 通过手动刷新页面,不会显示白屏

PeachDeveloper commented 2 months ago

@AdvancedCat