第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問(wèn)題,去搜搜看,總會(huì)有你想問(wèn)的

vuejs 寫樹狀二級(jí)菜單加上path 路徑之后 導(dǎo)致 地址錯(cuò)輪

vuejs 寫樹狀二級(jí)菜單加上path 路徑之后 導(dǎo)致 地址錯(cuò)輪

慕哥9229398 2019-03-14 18:15:13
<template><div class="slide">    <div v-for="(item,index) in list" class="slide-wrap"  @click="showList(item)">        <router-link class="title"  tag="div"  :to="{ path: item.path }">            <i :class="icons[index]" class="icons"></i>                {{item.title}}             <i class="icon-ml el-icon-arrow-right" v-if="item.children"></i>            <!-- <i v-show="item.isShow" class="el-icon-arrow-down icon-ml"></i> -->        </router-link >                    <div v-if="item.children" v-show="item.isShow" >            <div class="title1" v-for="items in item.children" >{{items.title}}</div>        </div>                    </div></div></template><script>export default{    name:'HomeSlide',    data(){        return {            list:[                {                    id:0,                    isShow: false,                    title:"首頁(yè)",                    path: 'person'                },                {                    id:3,                    isShow: false,                    title:"示例表格 ",                    path: 'table'                },                {                    id:4,                    title:"綜合實(shí)例 ",                    isShow: false,                    rightTir: true,                    path: 'explame',                    children:[                        {                            id: 0,                            title: "form表單編輯",                            path: 'form'                        },                        {                            id: 1,                            title: "富文本編輯",                            path: 'edit'                        }                    ]                }            ]                    }    },</script>代碼是組圖片是main.js當(dāng)我點(diǎn)沒(méi)children的子路由的時(shí)候地址正常,但是當(dāng)我點(diǎn)了有children的子路由的時(shí)候地址就亂了 就像這樣http://localhost:8080/index/table  http://localhost:8080/index/person  http://localhost:8080/index/explame/form、點(diǎn)了有子路由的綜合實(shí)例在點(diǎn)沒(méi)有子路由的 然后 路由就亂了 就像下面這樣 不知道問(wèn)題出那了http://localhost:8080/index/explame/table
查看完整描述

1 回答

?
鴻蒙傳說(shuō)

TA貢獻(xiàn)1865條經(jīng)驗(yàn) 獲得超7個(gè)贊

可以吧path路徑補(bǔ)全


path:'index/explame/form'

path:'index/explame/edit'


查看完整回答
反對(duì) 回復(fù) 2019-04-10
  • 1 回答
  • 0 關(guān)注
  • 493 瀏覽
慕課專欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)