Explorar el Código

edit title

master
chutingting hace 4 años
padre
commit
304a948a68
Se han modificado 3 ficheros con 12 adiciones y 5 borrados
  1. +2
    -2
      public/index.html
  2. +2
    -1
      src/api/request.js
  3. +8
    -2
      src/router/index.js

+ 2
- 2
public/index.html Ver fichero

@@ -4,8 +4,8 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<meta name="keywords" content="瑜璟缘国际文化礼仪培训" />
<meta name="description" content="瑜璟缘国际文化礼仪培训" />
<meta name="keywords" content="礼仪培训师资格证,线上礼仪培训班,礼仪培训网课,形象礼仪培训师在线考证" />
<meta name="description" content="瑜璟缘国际形象礼仪主营:礼仪培训,礼仪培训师,商务礼仪培训,社交礼仪培训,服务礼仪培训,企业礼仪培训,职场礼仪培训,礼仪培训班,政务礼仪培训的培训团队。电话:13121112777欢迎您来电咨询!" />
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<title><%= htmlWebpackPlugin.options.title %></title>
</head>


+ 2
- 1
src/api/request.js Ver fichero

@@ -3,7 +3,8 @@ import { Message } from "element-ui"


const service = axios.create({
baseURL: '/C/', // api的base_url https://www.yjyculture.com/C/
baseURL: '/C/',
//baseURL: 'https://www.yjyculture.com/C/',
timeout: 60000 // 请求超时时间
})



+ 8
- 2
src/router/index.js Ver fichero

@@ -185,9 +185,15 @@ const router = new VueRouter({

router.beforeEach((to, from, next) => {
/* 路由发生变化修改页面title */
if (to.meta.title) {
/* if (to.meta.title) {
document.title = to.meta.title
}
} */
let head = document.getElementsByTagName('head');
let meta = document.createElement('meta');
document.querySelector('meta[name="keywords"]').setAttribute('content', '礼仪培训师资格证,线上礼仪培训班,礼仪培训网课,形象礼仪培训师在线考证')
document.querySelector('meta[name="description"]').setAttribute('content', '瑜璟缘国际形象礼仪主营:礼仪培训,礼仪培训师,商务礼仪培训,社交礼仪培训,服务礼仪培训,企业礼仪培训,职场礼仪培训,礼仪培训班,政务礼仪培训的培训团队。电话:13121112777欢迎您来电咨询!')
head[0].appendChild(meta)
document.title = '瑜璟缘国际形象礼仪,国际礼仪培训机构,企业培训机构,形象礼仪,形象礼仪培训师'
next()
})
export default router

Cargando…
Cancelar
Guardar