demo: 补 tag.vue / product.vue 页面壳
VueAdmin 按 moduleKey 自动找 @/module/<key>.vue,demo 后端注册了 tag/product 两个模块但前端只剩 user.vue/role.vue,导致路由 404。两个文件都是 <ShrimpTable moduleKey="..." /> 一行壳,业务由框架自动渲染。
This commit is contained in:
@@ -0,0 +1,7 @@
|
|||||||
|
<template>
|
||||||
|
<ShrimpTable moduleKey="product" />
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script lang="ts" setup>
|
||||||
|
import ShrimpTable from '@/components/ShrimpTable.vue'
|
||||||
|
</script>
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
<template>
|
||||||
|
<ShrimpTable moduleKey="tag" />
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script lang="ts" setup>
|
||||||
|
import ShrimpTable from '@/components/ShrimpTable.vue'
|
||||||
|
</script>
|
||||||
Reference in New Issue
Block a user