Comments (5)
你好,你的 package version 与示例文件并没有不一样,效果参考 主页示例 web。
如果你重装依赖并重启项目后依旧有问题,请提示一个 demo repo 否则我无法准确复现你的问题,感谢。
from uni-vitesse.
我刚才发现了问题 我在
<route lang="yaml">
name: Demo
layout: default
style:
navigationBarTitleText: Demo
tabBar:
iconPath: static/images/tabBar/demo.png
selectedIconPath: static/images/tabBar/selectedDemo.png
</route>
加入了基本信息之外的信息tabBar 导致它运行不正确 令我困惑的是即便我撤销了更改也不生效了 我去问一下这个库的吧
from uni-vitesse.
这个插件其实还没有热更新,你修改后需要重启项目.
你的 layout 没有正确加载,应该不是这个问题导致的,我按你説的修改了配置,但是依旧没有问题。
如果你想让我了解更多的话,请务必提供一个 demo repo ,或在线编辑器链接,因为我无法模拟出你遇见的问题,感谢。
from uni-vitesse.
找到问题了 吐血! 居然是头部注释的问题!
<!--
* @Description: 头部不能有这个注释。。。
* @Author:
* @Date: 2023-06-30 09:05:38
-->
我本来还以为是我加上对tabbar的处理造成的 一直找一直找 o(╥﹏╥)o
UniPages({
dir: 'src/pages',
routeBlockLang: 'yaml',
exclude: ['**/components/*.vue'],
subPackages: [
'src/pages-sub',
],
onBeforeWriteFile(ctx) {
type PageMeta = (PageMetaDatum & { name: string; tabBar?: { text?: string; iconPath: string; selectedIconPath: string } })
const pageMetaData = ctx.pageMetaData as PageMeta[]
ctx.pagesGlobConfig!.tabBar!.list = pageMetaData.flatMap(e => 'tabBar' in e
? {
pagePath: e.path,
text: e.tabBar?.text ? e.tabBar.text : e.style?.navigationBarTitleText,
iconPath: e.tabBar!.iconPath,
selectedIconPath: e.tabBar!.selectedIconPath,
}
: [])
},
}),
from uni-vitesse.
... 这种东西见仁见智,我是并不推荐文件头部注释的,没什么用,而且时间作者,你改代码也并一一定记得会改。
不如做好 git commit ,推荐在 VSCode 中安装个插件更实用。
可以参考一下我的 use 里面用很多我觉得实用的插件。
from uni-vitesse.
Related Issues (20)
- 不能热更新怎么破 HOT 6
- Pinia 升级导致无法运行 HOT 4
- Mac M1 芯片编译 App 报错 HOT 8
- h5端热更新时,全页刷新问题 HOT 1
- 开发模式下初次加载 `unocss` 样式未被添加 HOT 2
- 现在这种情况如何使用第三方的UI框架和内置的组件 HOT 3
- 如果我想使用uni内置组件, zheng常使用的话就提示无用的标签 HOT 3
- 在框架中使用canvas uni官方提供的demo不生效 HOT 2
- vscode-eslint2.4.2 无法启用 HOT 6
- 模版代码一丝不动直接运行小程序报错 HOT 10
- 微信小程序编译 HOT 4
- 编译为微信小程序插件报错 HOT 3
- 项目中的vue版本为3.4, 在实际使用中使用defineModel,报错 HOT 1
- Missing dep unplugin-vue-macros? HOT 2
- H5环境下面报错 HOT 1
- 我不明白为什么要限制pnpm的版本? HOT 2
- button、view等标签红色提示 HOT 2
- unocss 在微信小程序中把icon图片全变成灰色 HOT 6
- src中缺少pages.json文件
- uni-app 自带的标签,类型定义报错 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from uni-vitesse.