uni-helper / vite-plugin-uni-pages

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

生成的uni-pages.d.ts有问题 #147

Closed LeoKun1231 closed 7 months ago

LeoKun1231 commented 7 months ago

描述问题

image pages前面少了个 /

复现

UniPages({ exclude: ['/components//*.'], routeBlockLang: 'json5', // 虽然设了默认值,但是vue文件还是要加上 lang="json5", 这样才能很好地格式化 homePage: '/pages/home/home', subPackages: ['src/pages-circle', 'src/pages-home', 'src/pages-profile', 'src/pages-common'], // 是个数组,可以配置多个 }),

系统信息

System:
    OS: Windows 10 10.0.25267
    CPU: (8) x64 Intel(R) Core(TM) i5-9300H CPU @ 2.40GHz
    Memory: 13.26 GB / 31.92 GB
  Binaries:
    Node: 20.10.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.17 - ~\AppData\Roaming\npm\yarn.CMD
    npm: 10.2.3 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Spartan (44.25267.1000.0), Chromium (123.0.2420.65)
    Internet Explorer: 11.0.25267.1000

使用的包管理器

pnpm

核对

LeoKun1231 commented 7 months ago

已解决 升级到0.2.15即可