diff --git a/public/index.html b/public/index.html index 45f657b..02bebd9 100644 --- a/public/index.html +++ b/public/index.html @@ -4,8 +4,8 @@ - - + + <%= htmlWebpackPlugin.options.title %> diff --git a/src/api/request.js b/src/api/request.js index 15e2f92..032ac4d 100644 --- a/src/api/request.js +++ b/src/api/request.js @@ -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 // 请求超时时间 }) diff --git a/src/router/index.js b/src/router/index.js index 978d643..ffe63d7 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -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