Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
FliPPeDround committed Dec 11, 2024
1 parent 4c41f75 commit 82ef82b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import DevTools from '@uni-helper/devtools'
export default defineConfig({
plugins: [
DevTools({
client: true,
openDesktop: true,
}),
Uni(),
],
Expand Down
3 changes: 1 addition & 2 deletions packages/plugin/src/devtoolServer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,8 @@ export function createDevtoolServe(
if (options?.openBrowser) {
openInBrowser(`http://localhost:${rightPort}`)
}
if (options?.openClient) {
if (options?.openDesktop) {
openInDevtools()
addCustomTab()
}
})
})
Expand Down
4 changes: 2 additions & 2 deletions packages/plugin/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ export interface Options {
*/
vueDevtoolsOptions: VitePluginVueDevToolsOptions
/**
* 客户端
* 打开客户端
* @default false
*/
openClient: boolean
openDesktop: boolean
/**
* 打开浏览器
* @default false
Expand Down

0 comments on commit 82ef82b

Please sign in to comment.