uni-helper / vite-plugin-uni-pages

为 Vite 下的 uni-app 提供基于文件系统的路由
https://uni-helper.js.org/vite-plugin-uni-pages
MIT License
104 stars 15 forks source link

volar route配置无效 #103

Closed tanwenchao closed 1 year ago

tanwenchao commented 1 year ago

描述问题

image 在pages根目录新建index.vue配置是可以的,

image

复现

在pages新建其他目录有问题,比如我在这里新建了个my的文件夹,在my文件夹下面放index.vue,此时配置的route信息就不能生效了

image image

系统信息

System:
    OS: macOS Mojave 10.14.6
    CPU: (8) x64 Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz
    Memory: 35.23 MB / 16.00 GB
    Shell: 5.3 - /bin/zsh
  Binaries:
    Node: 17.4.0 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 9.5.1 - /usr/local/bin/npm
    pnpm: 8.3.1 - /usr/local/bin/pnpm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  Browsers:
    Chrome: 115.0.5790.170
    Safari: 14.1.2

"@uni-helper/volar-service-uni-pages": "^0.2.6"

使用的包管理器

pnpm

核对

KeJunMao commented 1 year ago

我看看

KeJunMao commented 1 year ago

demo

未能复现,请提供一个最小仓库~

tanwenchao commented 1 year ago

骚瑞,我的问题,在pages.config.ts中定义了pages