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>
import { shallowRef } from 'vue'
var cachedViews=shallowRef([])
var cachedViews=shallowRef(['home','demo'])
var cached=true
</script>

4
src/router/index.js

@ -8,13 +8,13 @@ export const menu = [
path:"/",
name:"home",
component:layout,
redirect:"/home1",
redirect:"/home",
meta:{
title:"测试页面",
icon:"set",
},
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")}),
]
},

2
src/view/home.vue

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

Loading…
Cancel
Save