Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
DTBPcompnay
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李堔
DTBPcompnay
Commits
e1b671c5
Commit
e1b671c5
authored
Aug 19, 2022
by
陈毅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面logo 指示头
parent
29323804
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
36 additions
and
4 deletions
+36
-4
app.js
app.js
+31
-0
nuxt.config.js
nuxt.config.js
+2
-2
app.html
src/app.html
+1
-0
index.vue
src/pages/index.vue
+1
-1
index.vue
src/pages/news/index.vue
+1
-1
dtbc.ico
src/static/dtbc.ico
+0
-0
No files found.
app.js
0 → 100644
View file @
e1b671c5
// 服务器入口文件
// 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
()
nuxt.config.js
View file @
e1b671c5
...
...
@@ -4,7 +4,7 @@ export default {
// target:"static",
srcDir
:
'src/'
,
head
:
{
title
:
'德天博
城
'
,
title
:
'德天博
诚
'
,
htmlAttrs
:
{
lang
:
'en'
},
...
...
@@ -14,7 +14,7 @@ export default {
{
hid
:
'description'
,
name
:
'description'
,
content
:
''
}
],
link
:
[
{
rel
:
'icon'
,
type
:
'image/x-icon'
,
href
:
'/
favicon
.ico'
}
{
rel
:
'icon'
,
type
:
'image/x-icon'
,
href
:
'/
dtbc
.ico'
}
]
},
server
:
{
...
...
src/app.html
View file @
e1b671c5
...
...
@@ -11,6 +11,7 @@
(
function
()
{
var
hm
=
document
.
createElement
(
"script"
);
// hm.src = "https://hm.baidu.com/hm.js?b54299c6e74646499b57980daf12edbc";
hm
.
src
=
"https://hm.baidu.com/hm.js?133b08b606b0dad6223e64cd44dd97a9"
;
var
s
=
document
.
getElementsByTagName
(
"script"
)[
0
];
s
.
parentNode
.
insertBefore
(
hm
,
s
);
})();
...
...
src/pages/index.vue
View file @
e1b671c5
...
...
@@ -426,7 +426,7 @@ import Config from "@/config";
export
default
{
head
()
{
return
{
title
:
"德天博
城
"
,
title
:
"德天博
诚
"
,
meta
:[
{
hid
:
"11111111111111111"
,
...
...
src/pages/news/index.vue
View file @
e1b671c5
...
...
@@ -286,7 +286,7 @@ export default {
company
:
[
{
required
:
true
,
message
:
"请输入你的公司
*必填
"
,
message
:
"请输入你的公司"
,
trigger
:
"blur"
}
],
...
...
src/static/dtbc.ico
0 → 100644
View file @
e1b671c5
66.1 KB
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment