31 Star 228 Fork 113

帝莎编程 / tov-template

 / 详情

layouts异常

已完成
创建于  
2023-07-02 21:42

信息

nodejs 版本

18.16.1


包管理器及其版本

pnpm


系统

deepin



bug

描述

vite-plugin-vue-meta-layouts异常,运行项目1.17.0版本,新增layouts/admin.vue
内容如下:

<template>
	<div class="w-screen flex flex-col items-center justify-center">
		admin
	</div>
</template>

新增pages/admin/index.vue
内容如下:

<template>
	<div class="w-screen flex flex-col items-center justify-center">
		123
	</div>
</template>
<route lang="json">
{
	"meta": {
		"layout": "admin"
	}
}
</route>

预期结果

只显示admin

异常显示

输入图片说明

评论 (1)

神兵小将 创建了任务

@神兵小将 靓仔你好,请在 layout 中添加页面视图出口

<template>
	<div class="w-screen flex flex-col items-center justify-center">
		admin
               <router-view />
	</div>
</template>
markthree 任务状态待办的 修改为已完成
markthree 任务状态已完成 修改为进行中
markthree 负责人设置为markthree
markthree 添加了
 
discuss
标签
markthree 任务状态进行中 修改为已完成

登录 后才可以发表评论

状态
负责人
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
参与者(2)
10249119 markthree 1640753343
TypeScript
1
https://gitee.com/dishait/tov-template.git
git@gitee.com:dishait/tov-template.git
dishait
tov-template
tov-template

搜索帮助