fix: 🐛 修复多级路由组件中的按钮插槽警告
- 在 multi-level 组件的 detail.ts 文件中,将按钮的文本内容改为使用默认插槽的方式渲染
This commit is contained in:
@@ -19,7 +19,7 @@ export default defineComponent({
|
|||||||
type: "primary",
|
type: "primary",
|
||||||
onClick: () => navigateToDetail(1),
|
onClick: () => navigateToDetail(1),
|
||||||
},
|
},
|
||||||
"跳转详情1"
|
{ default: () => "跳转详情1" }
|
||||||
),
|
),
|
||||||
h(
|
h(
|
||||||
ElButton,
|
ElButton,
|
||||||
@@ -27,7 +27,7 @@ export default defineComponent({
|
|||||||
type: "success",
|
type: "success",
|
||||||
onClick: () => navigateToDetail(2),
|
onClick: () => navigateToDetail(2),
|
||||||
},
|
},
|
||||||
"跳转详情2"
|
{ default: () => "跳转详情2" }
|
||||||
),
|
),
|
||||||
]);
|
]);
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user