File tree 5 files changed +33
-18
lines changed
5 files changed +33
-18
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,10 @@ module.exports = {
4
4
es6 : true ,
5
5
node : true
6
6
} ,
7
- extends : [ 'plugin:vue/essential' , '@vue/standard' ] ,
7
+ extends : [
8
+ 'plugin:vue/essential'
9
+ //'@vue/standard'
10
+ ] ,
8
11
parserOptions : {
9
12
parser : 'babel-eslint'
10
13
} ,
@@ -14,6 +17,7 @@ module.exports = {
14
17
'vue/comment-directive' : 0 ,
15
18
quotes : [ 1 , 'single' ] ,
16
19
semi : [ 0 , 'never' ] ,
17
- 'space-before-function-paren' : [ 'error' , 'never' ]
20
+ 'space-before-function-paren' : [ 'error' , 'never' ] ,
21
+ 'no-multiple-empty-lines' : 0
18
22
}
19
23
} ;
Original file line number Diff line number Diff line change @@ -10,13 +10,13 @@ const routes = [
10
10
redicrect : '/screen'
11
11
} ,
12
12
{
13
- path : 'screen' ,
13
+ path : '/ screen' ,
14
14
component : ScreenPage
15
15
}
16
16
] ;
17
17
18
18
const router = new VueRouter ( {
19
- mode : 'history ' ,
19
+ mode : 'hash ' ,
20
20
base : process . env . BASE_URL ,
21
21
routes
22
22
} ) ;
Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ export default class SocketService {
55
55
console . log ( '从服务端获取到了数据' ) ;
56
56
// 真正服务端发送过来的原始数据时在msg中的data字段
57
57
// console.log(msg.data)
58
+ console . log ( 'msg.data:::' , msg . data ) ;
58
59
const recvData = JSON . parse ( msg . data ) ;
59
60
const socketType = recvData . socketType ;
60
61
// 判断回调函数是否存在
Original file line number Diff line number Diff line change 1
1
<!--
2
- 针对于 /hotpage 这条路径而显示出来的
3
- 在这个组件中, 通过子组件注册的方式, 要显示出Hot .vue 这个组件
2
+ 针对于 /mappage 这条路径而显示出来的
3
+ 在这个组件中, 通过子组件注册的方式, 要显示出Map .vue 这个组件
4
4
-->
5
5
<template>
6
6
<div class="com-page">
7
- <hot ></hot >
7
+ <single-map ></single-map >
8
8
</div>
9
9
</template>
10
10
11
11
<script>
12
- import Hot from '@/components/Hot';
12
+ import Map from '@/components/Map'
13
13
export default {
14
- data() {
15
- return {};
16
- },
17
- methods: {},
18
- components: {
19
- hot: Hot
20
- }
21
- };
14
+ data() {
15
+ return {}
16
+ },
17
+ methods: {},
18
+ components: {
19
+ 'single-map': Map
20
+ }
21
+ }
22
22
</script>
23
23
24
- <style lang="less" scoped></style>
24
+ <style lang="less" scoped>
25
+ </style>
Original file line number Diff line number Diff line change 1
1
module . exports = {
2
2
devServer : {
3
3
port : 8999 ,
4
- open : true
4
+ open : true ,
5
+ proxy : {
6
+ '/api' : {
7
+ target : 'http://localhost:8999' ,
8
+ changeOrigin : true ,
9
+ pathRewrite : {
10
+ '/api' : ''
11
+ }
12
+ }
13
+ }
5
14
}
6
15
} ;
You can’t perform that action at this time.
0 commit comments