Home > front end >  Ant - design - pro how to modify the page title?
Ant - design - pro how to modify the page title?

Time:09-19

As title, when I was in the page load displays the page title will be the desired effect
But after the page loads displayed page title is

To ask, how to do

CodePudding user response:

You set the routing, page and use the "Breadcrumb crumbs?" Check the routing setting

CodePudding user response:

reference 1/f, xiaoxiang dream response:
you set the routing, page and use the "Breadcrumb crumbs?" Check the routing setting
thank you for your bosses I routeView changed to pageView but routing format into the what should this broken?

CodePudding user response:

Find the SRC folder of the layouts folder BasicLayout. Js file, you look at the output of your return address

CodePudding user response:

reference xiaoxiang dream reply: 3/f
find the SRC folder of the layouts folder BasicLayout. Js file, you look at the output of your return address
eldest brother I don't have this to me is a js file. Vue file
 


<script>
The import {triggerWindowResizeEvent} from '@/utils/util'
The import {mapState, mapActions} from 'vuex'
Import {mixins, mixinDevice} from '@/utils/mixin'
Import the config from '@/config/defaultSettings'

The import RouteView from '/RouteView'
The import SideMenu from '@/components/Menu/SideMenu'
The import GlobalHeader from '@/components/GlobalHeader'
The import GlobalFooter from '@/components/GlobalFooter'
The import SettingDrawer from '@/components/SettingDrawer'
The import {convertRoutes} from '@/utils/routeConvert'
The import {asyncRouterMap} from '@/config/router. Config. Js'//have permission to delete this sentence after
Export the default {
Name: 'BasicLayout'
Mixins: [mixins, mixinDevice],
Components: {
RouteView,
SideMenu,
GlobalHeader,
GlobalFooter,
SettingDrawer
},
Data () {
Return {
Production: config. Production,
Collapsed: false,
Menus: []
}
},
The computed: {
. MapState ({
//dynamic road by
The mainMenu: state=& gt; State. Permission. AddRouters
}),
ContentPaddingLeft () {
if (! Enclosing fixSidebar | | this. IsMobile ()) {
Return '0'
}
If (this. SidebarOpened) {
Return '256 px'
}
Return '80 px'
}
},
Watch: {
SidebarOpened (val) {
This collapsed=! Val
}
},
//created () {
//const routes=convertRoutes (this) the mainMenu) find (item=& gt; Item. The path==='/'))
//this. Menus=(routes & amp; & Routes. The children) | | []
//this collapsed=! Enclosing sidebarOpened
//},
//have permission to use the above
Created () {
This. Menus=asyncRouterMap. Find (=(item) & gt; Item. The path==='/'). The children
//this. Menus=this. The mainMenu. Find (=(item) & gt; Item. The path==='/'). The children
This collapsed=! Enclosing sidebarOpened
},
Mounted () {
Const userAgent.=the navigator userAgent
If (userAgent. IndexOf (' Edge ') & gt; 1) {
This. $nextTick (()=& gt; {
This collapsed=! This. Collapsed
SetTimeout ()=& gt; {
This collapsed=! This. Collapsed
16)},
})
}
},
Methods: {
. MapActions ([' setSidebar ']),
Toggle () {
This collapsed=! This. Collapsed
This setSidebar (! This. Collapsed)
TriggerWindowResizeEvent ()
},
PaddingCalc () {
Let the left='
nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull
  • Related