A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/PanJiaChen/vue-element-admin/commit/4ee334ad833abe52bd57ca08c12b5848a5a173ed below:

set noredirect => noRedirect · PanJiaChen/vue-element-admin@4ee334a · GitHub

File tree Expand file treeCollapse file tree 6 files changed

+13

-15

lines changed

Filter options

Expand file treeCollapse file tree 6 files changed

+13

-15

lines changed Original file line number Diff line number Diff line change

@@ -129,7 +129,7 @@ export const asyncRoutes = [

129 129

{

130 130

path: '/components',

131 131

component: 'layout/Layout',

132 -

redirect: 'noredirect',

132 +

redirect: 'noRedirect',

133 133

name: 'ComponentDemo',

134 134

meta: {

135 135

title: 'components',

@@ -225,7 +225,7 @@ export const asyncRoutes = [

225 225

{

226 226

path: '/charts',

227 227

component: 'layout/Layout',

228 -

redirect: 'noredirect',

228 +

redirect: 'noRedirect',

229 229

name: 'Charts',

230 230

meta: {

231 231

title: 'charts',

@@ -361,7 +361,7 @@ export const asyncRoutes = [

361 361

{

362 362

path: '/error',

363 363

component: 'layout/Layout',

364 -

redirect: 'noredirect',

364 +

redirect: 'noRedirect',

365 365

name: 'ErrorPages',

366 366

meta: {

367 367

title: 'errorPages',

@@ -386,7 +386,7 @@ export const asyncRoutes = [

386 386

{

387 387

path: '/error-log',

388 388

component: 'layout/Layout',

389 -

redirect: 'noredirect',

389 +

redirect: 'noRedirect',

390 390

children: [

391 391

{

392 392

path: 'log',

@@ -472,7 +472,7 @@ export const asyncRoutes = [

472 472

{

473 473

path: '/theme',

474 474

component: 'layout/Layout',

475 -

redirect: 'noredirect',

475 +

redirect: 'noRedirect',

476 476

children: [

477 477

{

478 478

path: 'index',

@@ -486,7 +486,7 @@ export const asyncRoutes = [

486 486

{

487 487

path: '/clipboard',

488 488

component: 'layout/Layout',

489 -

redirect: 'noredirect',

489 +

redirect: 'noRedirect',

490 490

children: [

491 491

{

492 492

path: 'index',

Original file line number Diff line number Diff line change

@@ -2,7 +2,7 @@

2 2

<el-breadcrumb class="app-breadcrumb" separator="/">

3 3

<transition-group name="breadcrumb">

4 4

<el-breadcrumb-item v-for="(item,index) in levelList" :key="item.path">

5 -

<span v-if="item.redirect==='noredirect'||index==levelList.length-1" class="no-redirect">{{

5 +

<span v-if="item.redirect==='noRedirect'||index==levelList.length-1" class="no-redirect">{{

6 6

generateTitle(item.meta.title) }}</span>

7 7

<a v-else @click.prevent="handleLink(item)">{{ generateTitle(item.meta.title) }}</a>

8 8

</el-breadcrumb-item>

@@ -31,6 +31,7 @@ export default {

31 31

methods: {

32 32

generateTitle,

33 33

getBreadcrumb() {

34 +

// only show routes with name

34 35

let matched = this.$route.matched.filter(item => item.name)

35 36 36 37

const first = matched[0]

Original file line number Diff line number Diff line change

@@ -121,7 +121,7 @@ export default {

121 121 122 122

data.title = [...data.title, i18ntitle]

123 123 124 -

if (router.redirect !== 'noredirect') {

124 +

if (router.redirect !== 'noRedirect') {

125 125

// only push the routes with title

126 126

// special case: need to exclude parent router without redirect

127 127

res.push(data)

Original file line number Diff line number Diff line change

@@ -20,7 +20,7 @@ import nestedRouter from './modules/nested'

20 20

* alwaysShow: true if set true, will always show the root menu

21 21

* if not set alwaysShow, when item has more than one children route,

22 22

* it will becomes nested mode, otherwise not show the root menu

23 -

* redirect: noredirect if `redirect:noredirect` will no redirect in the breadcrumb

23 +

* redirect: noRedirect if set noRedirect will no redirect in the breadcrumb

24 24

* name:'router-name' the name is used by <keep-alive> (must set!!!)

25 25

* meta : {

26 26

roles: ['admin','editor'] control the page roles (you can set multiple roles)

@@ -224,7 +224,7 @@ export const asyncRoutes = [

224 224

{

225 225

path: '/error',

226 226

component: Layout,

227 -

redirect: 'noredirect',

227 +

redirect: 'noRedirect',

228 228

name: 'ErrorPages',

229 229

meta: {

230 230

title: 'errorPages',

@@ -249,7 +249,6 @@ export const asyncRoutes = [

249 249

{

250 250

path: '/error-log',

251 251

component: Layout,

252 -

redirect: 'noredirect',

253 252

children: [

254 253

{

255 254

path: 'log',

@@ -336,7 +335,6 @@ export const asyncRoutes = [

336 335

{

337 336

path: '/theme',

338 337

component: Layout,

339 -

redirect: 'noredirect',

340 338

children: [

341 339

{

342 340

path: 'index',

@@ -350,7 +348,6 @@ export const asyncRoutes = [

350 348

{

351 349

path: '/clipboard',

352 350

component: Layout,

353 -

redirect: 'noredirect',

354 351

children: [

355 352

{

356 353

path: 'index',

Original file line number Diff line number Diff line change

@@ -5,7 +5,7 @@ import Layout from '@/layout'

5 5

const chartsRouter = {

6 6

path: '/charts',

7 7

component: Layout,

8 -

redirect: 'noredirect',

8 +

redirect: 'noRedirect',

9 9

name: 'Charts',

10 10

meta: {

11 11

title: 'charts',

Original file line number Diff line number Diff line change

@@ -5,7 +5,7 @@ import Layout from '@/layout'

5 5

const componentsRouter = {

6 6

path: '/components',

7 7

component: Layout,

8 -

redirect: 'noredirect',

8 +

redirect: 'noRedirect',

9 9

name: 'ComponentDemo',

10 10

meta: {

11 11

title: 'components',

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4