Commit e1b671c5 authored by 陈毅's avatar 陈毅

页面logo 指示头

parent 29323804
// 服务器入口文件
// 1.创建koa实例对象
const Koa = require('koa')
const app = new Koa()
// 2.绑定中间件
// 绑定第一层中间件(计算总耗时中间件)
const respDurationMiddleware = require('./middleware/koa_response_duration')
app.use(respDurationMiddleware)
// 绑定第二层中间件(响应头中间件)
const respHeaderMiddleware = require("./middleware/koa_response_header")
app.use(respHeaderMiddleware)
// 绑定第三层中间件(读取文件数据)
const respDataMiddleware = require('./middleware/koa_response_data')
app.use(respDataMiddleware)
// 3.监听端口
app.listen(9997, () => {
// 只有请求地图数据时,用到了 9997端口
console.log("Server Start Complete: \thttp://localhost:9997 \t ws://localhost:9998");
})
const WebSocketService = require('./service/web_socket_service')
// 开启服务端的监听,监听客户端的连接
// 当某一个客户端连接成功之后,就会对这个客户端进行 message 事件的监听
WebSocketService.listen()
...@@ -4,7 +4,7 @@ export default { ...@@ -4,7 +4,7 @@ export default {
// target:"static", // target:"static",
srcDir:'src/', srcDir:'src/',
head: { head: {
title: '德天博', title: '德天博',
htmlAttrs: { htmlAttrs: {
lang: 'en' lang: 'en'
}, },
...@@ -14,7 +14,7 @@ export default { ...@@ -14,7 +14,7 @@ export default {
{ hid: 'description', name: 'description', content: '' } { hid: 'description', name: 'description', content: '' }
], ],
link: [ link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' } { rel: 'icon', type: 'image/x-icon', href: '/dtbc.ico' }
] ]
}, },
server: { server: {
......
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
(function () { (function () {
var hm = document.createElement("script"); var hm = document.createElement("script");
// hm.src = "https://hm.baidu.com/hm.js?b54299c6e74646499b57980daf12edbc"; // hm.src = "https://hm.baidu.com/hm.js?b54299c6e74646499b57980daf12edbc";
hm.src = "https://hm.baidu.com/hm.js?133b08b606b0dad6223e64cd44dd97a9";
var s = document.getElementsByTagName("script")[0]; var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s); s.parentNode.insertBefore(hm, s);
})(); })();
......
...@@ -426,7 +426,7 @@ import Config from "@/config"; ...@@ -426,7 +426,7 @@ import Config from "@/config";
export default { export default {
head() { head() {
return{ return{
title: "德天博", title: "德天博",
meta:[ meta:[
{ {
hid:"11111111111111111", hid:"11111111111111111",
......
...@@ -286,7 +286,7 @@ export default { ...@@ -286,7 +286,7 @@ export default {
company: [ company: [
{ {
required: true, required: true,
message: "请输入你的公司*必填", message: "请输入你的公司",
trigger: "blur" trigger: "blur"
} }
], ],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment