Browse Source

master

master
邓宏 3 years ago
parent
commit
2bd849c7f0
  1. 2
      src/layout/component/appMain.vue
  2. 4
      src/router/index.js
  3. 2
      src/view/home.vue

2
src/layout/component/appMain.vue

@ -14,6 +14,6 @@
<script setup> <script setup>
import { shallowRef } from 'vue' import { shallowRef } from 'vue'
var cachedViews=shallowRef([]) var cachedViews=shallowRef(['home','demo'])
var cached=true var cached=true
</script> </script>

4
src/router/index.js

@ -8,13 +8,13 @@ export const menu = [
path:"/", path:"/",
name:"home", name:"home",
component:layout, component:layout,
redirect:"/home1", redirect:"/home",
meta:{ meta:{
title:"测试页面", title:"测试页面",
icon:"set", icon:"set",
}, },
children:[ children:[
setPath({path:"home3",name:"home3",meta:{title:"首页", icon:"set"},page:import("@/view/home.vue")}), setPath({path:"home",name:"home",meta:{title:"首页", icon:"set"},page:import("@/view/home.vue")}),
setPath({path:"demo",name:"demo",meta:{title:"demo", icon:"set"},page:import("@/view/demo.vue")}), setPath({path:"demo",name:"demo",meta:{title:"demo", icon:"set"},page:import("@/view/demo.vue")}),
] ]
}, },

2
src/view/home.vue

@ -17,7 +17,7 @@
</div> </div>
</template> </template>
<script setup> <script setup>
import { defineAsyncComponent, onMounted, ref } from 'vue' import { onMounted, ref } from 'vue'
import HelloWorld from "@/components/HelloWorld.vue" import HelloWorld from "@/components/HelloWorld.vue"
function img(){// function img(){//

Loading…
Cancel
Save