Results 3 comments of 祇祇

z-index高数值不一定在低数值前面,因为有层叠上下文的概念。当处于两个兄弟层叠上下文时,子元素的层级显示不决定于自身的z-index,而取决于父级的z-index

next14 have the same problem

我确实也是这样做的,但这样的做法让我觉得似乎是"多此一举"。 hooks是为了复用逻辑而存在,那么我为什么不把 `onLoad` 和页面传参也放入hooks里进行管理呢?否则每个页面都需要写这一段重复的代码。 另外补充一下问题描述: `useInit` 只能在onLoad中使用,如果在setup下直接使用将报错。 ``` TypeError: Cannot read property 'fullPath' of undefined at Object.useInit (useInit.js? [sm]:13) at setup (year.js:8) at callWithErrorHandling (vendor.js? [sm]:2843) at setupStatefulComponent (vendor.js? [sm]:4977)...