File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ And connect to host:
105
105
106
106
``` ts
107
107
if (process .env .NODE_ENV === ' development' )
108
- devtools .connect (/* host, port */ )
108
+ devtools .connect (/* host (the default is "http://localhost") , port (the default is 8090) */ )
109
109
```
110
110
111
111
:::tip Important
Original file line number Diff line number Diff line change 1
1
import { target } from '@vue/devtools-shared'
2
2
import { devtools } from '../../devtools-kit/src/index'
3
3
4
- export async function connect ( host : string , port : number ) {
4
+ export async function connect ( host = 'http://localhost' , port = 8098 ) {
5
5
devtools . init ( )
6
6
target . __VUE_DEVTOOLS_HOST__ = host
7
7
target . __VUE_DEVTOOLS_PORT__ = port
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ globalThis.document = {
8
8
getElementById : ( ) => { } ,
9
9
} as any
10
10
11
- devtools . connect ( 'http://localhost' , 8098 )
11
+ devtools . connect ( )
12
12
13
13
const app = createApp ( App )
14
14
app . mount ( )
You can’t perform that action at this time.
0 commit comments