Repository navigation
- ✨
VUE_APP_LOCALEfixes a build to one language. Set it tozh-CNoren-USand every visitor sees that language, including those who picked another one earlier, and the language switcher is not rendered. Left empty, as every.envin the repository ships, the visitor decides as before. A value that is not a language the build ships fails the build. #302 - 🐛 Leaving a page under a nested menu — the seeded 日志管理 → 登录日志 / 操作日志, or any two-level menu of your own — for a page outside that menu froze the content area on the old page. #312
Upgrading. If you wrote a container view for a two-level menu of your own by copying
views/log/index.vue, wrap its<router-view-keep-alive />in a<div>as that file now does. Without the wrapper, the page from the menu stays on screen after you leave it.
- ✨ 新增
VUE_APP_LOCALE,可在构建时把整套部署固定为一门语言。设为zh-CN或en-US后,所有访客都看到这门语言(包括之前选过其他语言的人),语言切换器不再渲染。留空(仓库里所有.env都是空的)则和以前一样由访客决定。填写本构建不包含的语言会让构建失败。#302 - 🐛 从二级菜单下的页面(种子数据里的 日志管理 → 登录日志 / 操作日志,或你自建的任意二级菜单)跳到菜单外的页面时,内容区会卡在原来的页面上。#312
升级说明。 如果你仿照
views/log/index.vue为自建的二级菜单写过容器视图,请像该文件现在这样,给其中的<router-view-keep-alive />外面包一层<div>。不包的话,离开该菜单后,菜单里的页面仍会留在屏幕上。