Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pages.json文件保存总会自动变成大佬原本的两个页面 #145

Open
bingxuelang opened this issue Jul 18, 2024 · 3 comments
Open

Comments

@bingxuelang
Copy link

Bug report(问题描述)

please write your issue description here

Steps to reproduce(问题复现步骤)

  1. 在pages.json文件添加新页面
  2. 多添加几个后保存,就会莫名其妙地变成了初始的模板状态

Screenshot or Gif(截图或动态图)

minimal reproduction(最小可还原代码)

System Info

npx envinfo --system --npmPackages vue --binaries --browsers

执行上面命令,将结果贴下面

@tianwing
Copy link

image

@RainyNight9
Copy link

该文件是自动生成的,需要 配置 pages.config.ts 这个文件就行,和约定是路由自动生成 page 下的目录

@RainyNight9
Copy link

但是感觉这个思路不太友好,项目是迭代,经常会有需求变动,不如某些页面就暂时不需要了,但是依然生成,希望有个开关什么的,或者去掉自动生成?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants